[gnome-disk-utility] Stop using GtkMisc



commit eb438ccc7d88286dba3ea6ca7db927394d74a0ec
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Aug 29 14:04:02 2015 -0500

    Stop using GtkMisc
    
    It's deprecated

 configure.ac                          |    2 +-
 src/disks/gdupasswordstrengthwidget.c |    2 +-
 src/libgdu/gduutils.c                 |    6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 883b814..bcf759d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -101,7 +101,7 @@ AC_MSG_RESULT([no])])
 
 GLIB2_REQUIRED=2.31.0
 UDISKS2_REQUIRED=2.1.1
-GTK3_REQUIRED=3.12.0
+GTK3_REQUIRED=3.16.0
 LIBSECRET1_REQUIRED=0.7
 PWQUALITY_REQUIRED=1.0.0
 CANBERRA_REQUIRED=0.1
diff --git a/src/disks/gdupasswordstrengthwidget.c b/src/disks/gdupasswordstrengthwidget.c
index 985cb4c..6f4138c 100644
--- a/src/disks/gdupasswordstrengthwidget.c
+++ b/src/disks/gdupasswordstrengthwidget.c
@@ -202,7 +202,7 @@ gdu_password_strength_widget_constructed (GObject *object)
       GtkWidget *label;
       gchar *s;
       label = gtk_label_new (NULL);
-      gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
+      gtk_label_set_xalign (GTK_LABEL (label), 0.0);
       s = g_strdup_printf ("<small>%s</small>",
                            g_dpgettext2 (NULL, "Password strength", hint_labels[n]));
       gtk_label_set_markup (GTK_LABEL (label), s);
diff --git a/src/libgdu/gduutils.c b/src/libgdu/gduutils.c
index 698a55a..5d93ee6 100644
--- a/src/libgdu/gduutils.c
+++ b/src/libgdu/gduutils.c
@@ -173,7 +173,7 @@ gdu_utils_create_info_bar (GtkMessageType   message_type,
   gtk_box_pack_start (GTK_BOX (hbox), image, FALSE, TRUE, 0);
 
   label = gtk_label_new (NULL);
-  gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+  gtk_label_set_xalign (GTK_LABEL (label), 0.0);
   gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
   gtk_label_set_max_width_chars (GTK_LABEL (label), 80);
   gtk_label_set_markup (GTK_LABEL (label), markup);
@@ -658,7 +658,7 @@ get_widget_for_object (UDisksClient *client,
 
   label = gtk_label_new (udisks_object_info_get_one_liner (info));
   gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_MIDDLE);
-  gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+  gtk_label_set_xalign (GTK_LABEL (label), 0.0);
   gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
 
   g_object_unref (info);
@@ -719,7 +719,7 @@ gdu_utils_show_confirmation (GtkWindow    *parent_window,
         }
 
       label = gtk_label_new (NULL);
-      gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+      gtk_label_set_xalign (GTK_LABEL (label), 0.0);
       /* Translators: Shown in confirmation dialogs with a list of devices that will be affected by the 
action */
       gtk_label_set_markup (GTK_LABEL (label), C_("confirmation-list-of-devices", "Affected Devices"));
       attrs = pango_attr_list_new ();


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