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
This commit is contained in:
parent
8b57278f67
commit
18e2eb8618
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue