From 8fd8e31271ff40c874ad076fd6057744fbc116fb Mon Sep 17 00:00:00 2001 From: Bart Hakvoort Date: Fri, 30 Dec 2005 18:11:03 +0000 Subject: [PATCH] fixed alignments of cells in combo_devices * src/Win_GParted.cc: fixed alignments of cells in combo_devices --- ChangeLog | 4 ++++ src/GParted_Core.cc | 2 +- src/Win_GParted.cc | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 34fe7631..f3b7084b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-12-30 Bart Hakvoort + + * src/Win_GParted.cc: fixed alignments of cells in combo_devices + 2005-12-30 Bart Hakvoort * include/Win_GParted.h, diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc index 7d5888cc..fa7db41e 100644 --- a/src/GParted_Core.cc +++ b/src/GParted_Core.cc @@ -96,7 +96,7 @@ void GParted_Core::get_devices( std::vector & devices ) lp_device = ped_device_get_next( lp_device ) ; } close_device_and_disk() ; - + for ( unsigned int t = 0 ; t < device_paths .size() ; t++ ) { if ( open_device_and_disk( device_paths[ t ], false ) ) diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc index fb01be7e..14917c80 100644 --- a/src/Win_GParted.cc +++ b/src/Win_GParted.cc @@ -174,9 +174,9 @@ void Win_GParted::init_toolbar( ) liststore_devices = Gtk::ListStore::create( treeview_devices_columns ) ; combo_devices .set_model( liststore_devices ) ; - combo_devices .pack_start( treeview_devices_columns .icon ) ; + combo_devices .pack_start( treeview_devices_columns .icon, false ) ; combo_devices .pack_start( treeview_devices_columns .device ) ; - combo_devices .pack_start( treeview_devices_columns .size ) ; + combo_devices .pack_start( treeview_devices_columns .size, false ) ; combo_devices .signal_changed() .connect( sigc::mem_fun(*this, &Win_GParted::combo_devices_changed) ); @@ -712,7 +712,7 @@ void Win_GParted::menu_gparted_refresh_devices( ) thread = Glib::Thread::create( SigC::slot_class( *this, &Win_GParted::find_devices_thread ), true ); Show_Pulsebar() ; - + //check if current_device is still available (think about hotpluggable shit like usbdevices) if ( current_device >= devices .size() ) current_device = 0 ;