[balsa] Correct alignment of recipient labels



commit d0af94bb7babd84624d17ac16f2a194fea878812
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Nov 23 20:54:04 2016 -0500

    Correct alignment of recipient labels
    
        * src/sendmsg-window.h: remove redundant GtkSizeGroup;
        * src/sendmsg-window.c (create_email_or_string_entry),
        (create_info_pane), (sw_attachment_list): do not use it.

 ChangeLog            |    8 ++++++++
 src/sendmsg-window.c |    5 +----
 src/sendmsg-window.h |    1 -
 3 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7c2a075..9b0d3e6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2016-11-23  Peter Bloomfield  <pbloomfield bellsouth net>
 
+       Correct alignment of recipient labels.
+
+       * src/sendmsg-window.h: remove redundant GtkSizeGroup;
+       * src/sendmsg-window.c (create_email_or_string_entry),
+       (create_info_pane), (sw_attachment_list): do not use it.
+
+2016-11-23  Peter Bloomfield  <pbloomfield bellsouth net>
+
        * libbalsa/misc.c (libbalsa_font_string_to_css): make new CSS
        parsing conditional on gtk version 3.22.
 
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index 80711a4..b85b9d7 100644
--- a/src/sendmsg-window.c
+++ b/src/sendmsg-window.c
@@ -2291,7 +2291,6 @@ create_email_or_string_entry(BalsaSendmsg * bsmsg,
     if (GTK_IS_FRAME(mnemonic_widget))
         mnemonic_widget = gtk_bin_get_child(GTK_BIN(mnemonic_widget));
     arr[0] = gtk_label_new_with_mnemonic(label);
-    gtk_size_group_add_widget(bsmsg->size_group, arr[0]);
     gtk_label_set_mnemonic_widget(GTK_LABEL(arr[0]), mnemonic_widget);
     gtk_widget_set_halign(arr[0], GTK_ALIGN_START);
     g_object_set(arr[0], "margin", GNOME_PAD_SMALL, NULL);
@@ -2552,7 +2551,6 @@ create_info_pane(BalsaSendmsg * bsmsg)
     gtk_grid_set_column_spacing(GTK_GRID(grid), 6);
     gtk_container_set_border_width(GTK_CONTAINER(grid), 6);
 
-    bsmsg->size_group = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
     /* From: */
     create_from_entry(grid, bsmsg);
 
@@ -2564,7 +2562,7 @@ create_info_pane(BalsaSendmsg * bsmsg)
 
     /* To:, Cc:, and Bcc: */
     create_email_entry(bsmsg, grid, ++row, &bsmsg->recipient_view,
-                       bsmsg->recipients, "Rec_ipients", address_types,
+                       bsmsg->recipients, "Rec_ipients:", address_types,
                        G_N_ELEMENTS(address_types));
     gtk_widget_set_vexpand(bsmsg->recipients[1], TRUE);
     g_signal_connect_swapped(gtk_tree_view_get_model
@@ -2631,7 +2629,6 @@ sw_attachment_list(BalsaSendmsg *bsmsg)
 
     /* Attachment list */
     label = gtk_label_new_with_mnemonic(_("_Attachments:"));
-    gtk_size_group_add_widget(bsmsg->size_group, label);
     gtk_widget_set_halign(label, GTK_ALIGN_START);
     g_object_set(label, "margin", GNOME_PAD_SMALL, NULL);
     gtk_grid_attach(GTK_GRID(grid), label, 0, 0, 1, 1);
diff --git a/src/sendmsg-window.h b/src/sendmsg-window.h
index 6ea4107..5fccf6c 100644
--- a/src/sendmsg-window.h
+++ b/src/sendmsg-window.h
@@ -105,7 +105,6 @@ G_BEGIN_DECLS
         GtkTextMark *insert_mark;
 
         GtkWidget *paned;
-        GtkSizeGroup *size_group;
         gboolean ready_to_send;
     };
 


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