From fb080359a4f22dceb7bec8fafaf40795c8f9533c Mon Sep 17 00:00:00 2001 From: Bart Hakvoort Date: Thu, 1 Sep 2005 00:22:58 +0000 Subject: [PATCH] fixed bug with big fonts (#301831) * src/Dialog_Progress.cc: fixed bug with big fonts (#301831) --- ChangeLog | 4 ++++ src/Dialog_Progress.cc | 12 ++---------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 81fcac1b..ff6b1d3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-08-31 Bart Hakvoort + + * src/Dialog_Progress.cc: fixed bug with big fonts (#301831) + 2005-08-30 Bart Hakvoort * src/Win_GParted.cc: fixed typo (#312661) diff --git a/src/Dialog_Progress.cc b/src/Dialog_Progress.cc index 4a81cdd2..aeb7bf3d 100644 --- a/src/Dialog_Progress.cc +++ b/src/Dialog_Progress.cc @@ -22,7 +22,6 @@ namespace GParted Dialog_Progress::Dialog_Progress( int count_operations, Glib::RefPtr textbuffer ) { - this ->set_size_request( 600, 275 ) ; this ->set_resizable( false ) ; this ->set_has_separator( false ) ; this ->set_title( _("Applying pending operations") ) ; @@ -41,6 +40,7 @@ Dialog_Progress::Dialog_Progress( int count_operations, Glib::RefPtrget_vbox( ) ->pack_start( * mk_label( str_temp ), Gtk::PACK_SHRINK ); progressbar_current .set_pulse_step( 0.01 ) ; + progressbar_current .set_size_request( 500, -1 ) ; this->get_vbox( ) ->pack_start( progressbar_current, Gtk::PACK_SHRINK ); label_current .set_alignment( Gtk::ALIGN_LEFT ); @@ -58,12 +58,10 @@ Dialog_Progress::Dialog_Progress( int count_operations, Glib::RefPtrget_vbox( ) ->pack_start( scrolledwindow, Gtk::PACK_SHRINK ); - - this ->get_vbox( ) ->pack_start( * mk_label( "\n" + (Glib::ustring) _( "Completed Operations" ) + ":" ), Gtk::PACK_SHRINK ); + this ->get_vbox( ) ->pack_start( * mk_label( "\n" + static_cast( _( "Completed Operations" ) ) + ":" ), Gtk::PACK_SHRINK ); this ->get_vbox( ) ->pack_start( progressbar_all, Gtk::PACK_SHRINK ); this ->get_vbox( ) ->set_spacing( 5 ) ; - this ->get_vbox( ) ->set_border_width( 15 ) ; tglbtn_details .set_label( _("Details") ) ; tglbtn_details .signal_toggled( ) .connect( sigc::mem_fun( this, &Dialog_Progress::tglbtn_details_toggled ) ) ; @@ -121,15 +119,9 @@ bool Dialog_Progress::Show_Progress( ) void Dialog_Progress::tglbtn_details_toggled( ) { if ( tglbtn_details .get_active( ) ) - { scrolledwindow .show( ) ; - this ->set_size_request( 600, 375 ) ; - } else - { scrolledwindow .hide( ) ; - this ->set_size_request( 600, 275 ) ; - } } void Dialog_Progress::signal_textbuffer_insert( const Gtk::TextBuffer::iterator & iter, const Glib::ustring & text, int )