From 5f549f8b57d05cbca2211d393789a76e5b20c7e1 Mon Sep 17 00:00:00 2001 From: Bart Hakvoort Date: Sun, 26 Sep 2004 20:37:07 +0000 Subject: [PATCH] fixed alignment problems with some languages --- ChangeLog | 5 +++++ src/Dialog_Base_Partition.cc | 2 +- src/Dialog_Partition_New.cc | 6 ++++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index afad1af0..2cca1e87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-09-26 Bart Hakvoort + + * src/Dialog_Base_Partition.cc, + src/ Dialog_Partition_New.cc: fixed alignment problems with some languages + 2004-09-26 Bart Hakvoort * src/Win_GParted.cc: fixed bug that occured while converting the filesystem of a new partition diff --git a/src/Dialog_Base_Partition.cc b/src/Dialog_Base_Partition.cc index f2c02d53..3def89ce 100644 --- a/src/Dialog_Base_Partition.cc +++ b/src/Dialog_Base_Partition.cc @@ -117,7 +117,7 @@ void Dialog_Base_Partition::Set_Resizer( bool extended ) //connect signals frame_resizer_base ->signal_resize .connect ( sigc::mem_fun( this, &Dialog_Base_Partition::on_signal_resize) ); - hbox_resizer .pack_start( *frame_resizer_base, Gtk::PACK_SHRINK ); + hbox_resizer .pack_start( *frame_resizer_base, Gtk::PACK_EXPAND_PADDING ); this ->show_all_children() ; } diff --git a/src/Dialog_Partition_New.cc b/src/Dialog_Partition_New.cc index af541a27..7d0f9533 100644 --- a/src/Dialog_Partition_New.cc +++ b/src/Dialog_Partition_New.cc @@ -50,7 +50,8 @@ void Dialog_Partition_New::Set_Data( const Partition & partition, bool any_exten /*TO TRANSLATORS: used as label for a list of choices. Create as: */ label_type.set_text( (Glib::ustring) _("Create as:") + "\t" ); - table_create.attach( label_type, 0,1,0,1,Gtk::SHRINK); + label_type .set_alignment( Gtk::ALIGN_LEFT ) ; + table_create.attach( label_type, 0,1,0,1,Gtk::FILL); //fill partitiontype menu menu_type.items().push_back(Gtk::Menu_Helpers::MenuElem( "Primary") ) ; @@ -77,7 +78,8 @@ void Dialog_Partition_New::Set_Data( const Partition & partition, bool any_exten //filesystems to choose from label_filesystem.set_text( (Glib::ustring) _("Filesystem:") + "\t" ); - table_create.attach( label_filesystem, 0,1,1,2,Gtk::SHRINK); + label_filesystem .set_alignment( Gtk::ALIGN_LEFT ) ; + table_create.attach( label_filesystem, 0,1,1,2,Gtk::FILL); Build_Filesystems_Menu() ;