[balsa/gtk3] Set minimum vertical space for recipient list



commit 500c7358aedd24b572fb1842f08d5743b4a77792
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Mon Mar 23 18:06:49 2015 -0400

    Set minimum vertical space for recipient list
    
        * src/sendmsg-window.c (create_email_entry): try to give the
        recipient list around two lines of space.

 ChangeLog            |    7 +++++++
 src/sendmsg-window.c |    4 ++++
 2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 15fbc55..eb83020 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2015-03-23  Peter Bloomfield  <pbloomfield bellsouth net>
 
+       Set minimum vertical space for recipient list
+
+       * src/sendmsg-window.c (create_email_entry): try to give the
+       recipient list around two lines of space.
+
+2015-03-23  Peter Bloomfield  <pbloomfield bellsouth net>
+
        Deprecation cleanup--I missed one :(
 
        * src/balsa-mime-widget-text.c (fill_text_buf_cited):
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index 9259c4f..09413db 100644
--- a/src/sendmsg-window.c
+++ b/src/sendmsg-window.c
@@ -2395,6 +2395,10 @@ create_email_entry(BalsaSendmsg         * bsmsg,
     gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scroll),
                                   GTK_POLICY_AUTOMATIC,
                                   GTK_POLICY_AUTOMATIC);
+    /* This is a horrible hack, but we need to make sure that the
+     * recipient list is more than one line high: */
+    gtk_scrolled_window_set_min_content_height(GTK_SCROLLED_WINDOW(scroll),
+                                               60);
     gtk_container_add(GTK_CONTAINER(scroll), GTK_WIDGET(*view));
 
     widget[1] = gtk_frame_new(NULL);


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