[Patch] Expand lists in address book window

Albrecht Dreß <[email protected]>
Newsgroups gmane.comp.gnome.apps.balsa
Message-ID <[email protected]>
Hi all,

attached is a little patch as to properly expand the address lists in the address book window when the dialogue is enlarged.  For me, it fixes the resize issue for both the address book dialogue opened from Balsa as well as from the composer dialogue.

Cheers,
Albrecht.

_______________________________________________
balsa-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/balsa-list
AB_list_expand.diff (text/x-patch, 1.3 KB)
diff --git a/src/ab-window.c b/src/ab-window.c
index 5beb702..b1a7527 100644
--- a/src/ab-window.c
+++ b/src/ab-window.c
@@ -309,6 +309,8 @@ balsa_ab_window_init(BalsaAbWindow *ab)
 
     /* A scrolled window for the address clist */
     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);
@@ -342,6 +344,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);
 
@@ -369,6 +372,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);
signature.asc (application/pgp-signature, 473 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAABCAAGBQJaIqPJAAoJEEypbw5n59n4hYIH/RApoVpRTs0SRYORr/TVNqTa
aRSq+ojPm6wDgl2WfXOha4Jxg/lu/heyp8aY87EXpnZ2evD65i3V2fTMMVk1ElMA
Y2smS79NreghN+zVonBBsuOvuzf+/MvqziN1n2cZ+lJMfRWpEyQjeKVZQxYTL3MH
xVmOCMGrfdlBddH+B2UT3mDP6RfiqUXxU371+dLqL85V2uOU4QDVFhOQUrE5S0iX
sIldZbLMV3v0otVptCAIX7LHm77ciTnY67eSMKltJV1iFMeVsVIvCLbB6xX/txp6
NIpwUEvYtt/7B0ptNdSsA+GyRzBGkyV9Udco/FE30zT4Fe9K2zAZ51u6y+0s1aE=
=3EdK
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.