[balsa/wip/gtk4: 77/351] Expand lists in address book window



commit bc0263e26a712ab4f166ab11b5a8fe223fed6923
Author: Albrecht Dreß <albrecht dress arcor de>
Date:   Sat Dec 2 18:51:56 2017 -0500

    Expand lists in address book window
    
        * src/ab-window.c (balsa_ab_window_init): use GtkWidget's
        hexpand and vexpand functions to properly expand the
        address lists in the address book window when the dialogue is
        enlarged.
    
    Signed-off-by: Peter Bloomfield <PeterBloomfield bellsouth net>

 ChangeLog       |    9 +++++++++
 src/ab-window.c |    5 +++++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 9dcdf46..e48cc43 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2017-12-02  Albrecht Dreß <albrecht dress arcor de>
+
+       Expand lists in address book window
+
+       * src/ab-window.c (balsa_ab_window_init): use GtkWidget's
+       hexpand and vexpand functions to properly expand the
+       address lists in the address book window when the dialogue is
+       enlarged.
+
 2017-11-26  Peter Bloomfield  <pbloomfield bellsouth net>
 
        Do not crash if no spell-checker dictionaries are found
diff --git a/src/ab-window.c b/src/ab-window.c
index 5a7afaa..f2b81ea 100644
--- a/src/ab-window.c
+++ b/src/ab-window.c
@@ -310,6 +310,8 @@ balsa_ab_window_init(BalsaAbWindow *ab)
 
     /* A scrolled window for the address list */
     scrolled_window = gtk_scrolled_window_new(NULL, NULL);
+    gtk_widget_set_vexpand(scrolled_window, TRUE);
+    gtk_widget_set_hexpand(scrolled_window, TRUE);
     gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled_window),
                                   GTK_POLICY_AUTOMATIC,
                                   GTK_POLICY_AUTOMATIC);
@@ -345,6 +347,7 @@ balsa_ab_window_init(BalsaAbWindow *ab)
     /* Column for arrows in compose mode */
     ab->arrow_box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5);
     gtk_widget_set_vexpand(ab->arrow_box, TRUE);
+    gtk_widget_set_hexpand(ab->arrow_box, FALSE);
     gtk_grid_attach(GTK_GRID(grid), ab->arrow_box, 1, 1, 1, 1);
     gtk_widget_show(ab->arrow_box);
 
@@ -372,6 +375,8 @@ balsa_ab_window_init(BalsaAbWindow *ab)
 
     /* list for selected addresses in compose mode */
     ab->send_to_list = gtk_scrolled_window_new(NULL, NULL);
+    gtk_widget_set_vexpand(ab->send_to_list, TRUE);
+    gtk_widget_set_hexpand(ab->send_to_list, TRUE);
     gtk_widget_show(ab->send_to_list);
     gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(ab->send_to_list),
                                   GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);


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