Replace widget alignment ALIGN_TOP with ALIGN_CENTER (#652044)
Gtkmm release 2.24 in February 2011 deprecated the use of these alignment enumerators superseding them with: Deprecated enumerator Use instead Gtk::ALIGN_LEFT Gtk::ALIGN_START Gtk::ALIGN_RIGHT Gtk::ALIGN_END Gtk::ALIGN_TOP Gtk::ALIGN_START Gtk::ALIGN_BOTTOM Gtk::ALIGN_END gtkmm: gtkmm Enums and Flags [2.24] https://developer.gnome.org/gtkmm/2.24/group__gtkmmEnums.html The deprecated alignment enumerators were only used in the creation of Gtk::Label widgets by method Utils::mk_label(). In all but three cases the alignment was left, center. So make all labels with alignment left, center and then stop using the deprecated enumerators. Step 1 of 3: ALIGN_TOP was only used for these 2 labels: "Path:" text in View > Device Information; "Path:" text in Partition > Information. Use of ALIGN_TOP makes no difference to these labels so just change to ALIGN_CENTER. Bug #652044 - uses deprecated APIs
This commit is contained in:
parent
7f5ac07c3a
commit
8b57278f67
|
@ -280,7 +280,7 @@ void Dialog_Partition_Info::Display_Info()
|
|||
table ->attach( * Utils::mk_label( "<b>" + Glib::ustring( _("Path:") ) + "</b>",
|
||||
true,
|
||||
Gtk::ALIGN_LEFT,
|
||||
Gtk::ALIGN_TOP ),
|
||||
Gtk::ALIGN_CENTER ),
|
||||
0, 1,
|
||||
top, bottom,
|
||||
Gtk::FILL ) ;
|
||||
|
|
|
@ -485,7 +485,7 @@ void Win_GParted::init_device_info()
|
|||
table ->attach( * Utils::mk_label( " <b>" + static_cast<Glib::ustring>( _("Path:") ) + "</b>",
|
||||
true,
|
||||
Gtk::ALIGN_LEFT,
|
||||
Gtk::ALIGN_TOP ),
|
||||
Gtk::ALIGN_CENTER ),
|
||||
0, 1,
|
||||
top, bottom,
|
||||
Gtk::FILL ) ;
|
||||
|
|
Loading…
Reference in New Issue