[balsa] Use widget alignment instead of label alignment



commit 3b24347a404f9313b57148656c344eccab493313
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun May 28 14:38:45 2017 -0400

    Use widget alignment instead of label alignment
    
        * src/balsa-mime-widget-message.c (add_header_gchar): use
          gtk_widget_set_halign instead of gtk_label_set_xalign or
          deprecated gtk_misc_set_alignment.

 ChangeLog                       |    8 ++++++++
 src/balsa-mime-widget-message.c |    7 -------
 2 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 16b15f2..1e400ee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2017-05-28  Peter Bloomfield  <pbloomfield bellsouth net>
+
+       Use widget alignment instead of label alignment
+
+       * src/balsa-mime-widget-message.c (add_header_gchar): use
+         gtk_widget_set_halign instead of gtk_label_set_xalign or
+         deprecated gtk_misc_set_alignment.
+
 2017-05-28  Albrecht DreƟ
 
        Adjust SMTP timeouts
diff --git a/src/balsa-mime-widget-message.c b/src/balsa-mime-widget-message.c
index b98191b..7adfcde 100644
--- a/src/balsa-mime-widget-message.c
+++ b/src/balsa-mime-widget-message.c
@@ -620,13 +620,6 @@ add_header_gchar(GtkGrid * grid, const gchar * header, const gchar * label,
         gtk_label_set_line_wrap(GTK_LABEL(value_label), TRUE);
         gtk_label_set_line_wrap_mode(GTK_LABEL(value_label), PANGO_WRAP_WORD_CHAR);
         gtk_label_set_selectable(GTK_LABEL(value_label), TRUE);
-#if GTK_CHECK_VERSION(3, 16, 0)
-        gtk_label_set_xalign((GtkLabel *) value_label, 0.0);
-#else                           /* GTK_CHECK_VERSION(3, 16, 0) */
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-        gtk_misc_set_alignment((GtkMisc *) value_label, 0.0, 0.0);
-G_GNUC_END_IGNORE_DEPRECATIONS
-#endif                          /* GTK_CHECK_VERSION(3, 16, 0) */
         gtk_widget_set_halign(value_label, GTK_ALIGN_START);
         gtk_widget_set_hexpand(value_label, TRUE);
 


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