[gparted] Replace widget alignment ALIGN_RIGHT with ALIGN_LEFT (#652044)



commit 18e2eb86187df1aaba6fadb3c51dde95d26e2b4f
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Wed Oct 16 22:12:29 2013 +0100

    Replace widget alignment ALIGN_RIGHT with ALIGN_LEFT (#652044)
    
    Step 2 of 3:
    
    ALIGN_RIGHT was only used for the size figures in the GParted > Devices
    device selector with radio buttons.  Change to ALIGN_LEFT and adjust the
    widget packing to maintain appearance.
    
    Bug #652044 - uses deprecated APIs

 src/Win_GParted.cc |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index ad91e54..6df60cf 100644
--- a/src/Win_GParted.cc
+++ b/src/Win_GParted.cc
@@ -594,12 +594,12 @@ void Win_GParted::refresh_combo_devices()
        
                //devices submenu....
                hbox = manage( new Gtk::HBox() ) ;
-               hbox ->pack_start( * Utils::mk_label( devices[ i ] .get_path() ), Gtk::PACK_SHRINK ) ;
+               hbox ->pack_start( * Utils::mk_label( devices[ i ] .get_path() ), Gtk::PACK_EXPAND_WIDGET ) ;
                hbox ->pack_start( * Utils::mk_label( "   (" + Utils::format_size( devices[ i ] .length, 
devices[ i ] .sector_size ) + ")",
-                                                     true,
-                                                     Gtk::ALIGN_RIGHT ),
-                                  Gtk::PACK_EXPAND_WIDGET ) ;
-               
+                                                     true,
+                                                     Gtk::ALIGN_LEFT ),
+                                  Gtk::PACK_SHRINK ) ;
+
                menu ->items() .push_back( * manage( new Gtk::RadioMenuItem( radio_group ) ) ) ;
                menu ->items() .back() .add( *hbox ) ;
                menu ->items() .back() .signal_activate() .connect( 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]