From 8b57278f67b38116faa27b9a5c67c8f43539d32d Mon Sep 17 00:00:00 2001 From: Mike Fleetwood Date: Tue, 15 Oct 2013 22:55:45 +0100 Subject: [PATCH] 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 --- src/Dialog_Partition_Info.cc | 2 +- src/Win_GParted.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dialog_Partition_Info.cc b/src/Dialog_Partition_Info.cc index 069b2fdb..a453f956 100644 --- a/src/Dialog_Partition_Info.cc +++ b/src/Dialog_Partition_Info.cc @@ -280,7 +280,7 @@ void Dialog_Partition_Info::Display_Info() table ->attach( * Utils::mk_label( "" + Glib::ustring( _("Path:") ) + "", true, Gtk::ALIGN_LEFT, - Gtk::ALIGN_TOP ), + Gtk::ALIGN_CENTER ), 0, 1, top, bottom, Gtk::FILL ) ; diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc index 349bac6b..ad91e540 100644 --- a/src/Win_GParted.cc +++ b/src/Win_GParted.cc @@ -485,7 +485,7 @@ void Win_GParted::init_device_info() table ->attach( * Utils::mk_label( " " + static_cast( _("Path:") ) + "", true, Gtk::ALIGN_LEFT, - Gtk::ALIGN_TOP ), + Gtk::ALIGN_CENTER ), 0, 1, top, bottom, Gtk::FILL ) ;