[gparted] Replace widget alignment ALIGN_TOP with ALIGN_CENTER (#652044)



commit 8b57278f67b38116faa27b9a5c67c8f43539d32d
Author: Mike Fleetwood <mike fleetwood googlemail com>
Date:   Tue Oct 15 22:55:45 2013 +0100

    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 069b2fd..a453f95 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( "<b>" + Glib::ustring( _("Path:") ) + "</b>",
                                                   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 349bac6..ad91e54 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( " <b>" + static_cast<Glib::ustring>( _("Path:") ) + "</b>",
                                           true,
                                           Gtk::ALIGN_LEFT,
-                                          Gtk::ALIGN_TOP ),
+                                          Gtk::ALIGN_CENTER ),
                        0, 1,
                        top, bottom,
                        Gtk::FILL ) ;


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