[balsa/gtk3] Do not mess with scroll bars



commit ebbb35a31c5842c0f3cdd489851c639b5ac2d512
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed May 22 12:58:53 2013 -0400

    Do not mess with scroll bars
    
        * src/balsa-message.c (part_info_init): do not mess with scroll
        bars.
        * src/balsa-mime-widget-text.c (balsa_mime_widget_new_text):
        ditto.

 ChangeLog                    |    7 +++++++
 src/balsa-message.c          |    4 ----
 src/balsa-mime-widget-text.c |    6 ------
 3 files changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 78c725d..5ffc363 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2013-05-22  Peter Bloomfield
 
+       * src/balsa-message.c (part_info_init): do not mess with scroll
+       bars.
+       * src/balsa-mime-widget-text.c (balsa_mime_widget_new_text):
+       ditto.
+
+2013-05-22  Peter Bloomfield
+
        * src/sendmsg-window.c (create_info_pane): use
        create_email_or_string_entry for Fcc header.
 
diff --git a/src/balsa-message.c b/src/balsa-message.c
index b4eb879..0e5c7bb 100644
--- a/src/balsa-message.c
+++ b/src/balsa-message.c
@@ -1303,10 +1303,6 @@ part_info_init(BalsaMessage * bm, BalsaPartInfo * info)
     g_return_if_fail(info != NULL);
     g_return_if_fail(info->body != NULL);
 
-    gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(bm->scroll),
-                                   GTK_POLICY_AUTOMATIC,
-                                   GTK_POLICY_AUTOMATIC);
-
     info->mime_widget = balsa_mime_widget_new(bm, info->body, info->popup_menu);
 }
 
diff --git a/src/balsa-mime-widget-text.c b/src/balsa-mime-widget-text.c
index 791674f..af3fed4 100644
--- a/src/balsa-mime-widget-text.c
+++ b/src/balsa-mime-widget-text.c
@@ -153,12 +153,6 @@ balsa_mime_widget_new_text(BalsaMessage * bm, LibBalsaMessageBody * mime_body,
         BalsaMimeWidget *html_widget = NULL;
 
 #ifdef HAVE_HTML_WIDGET
-       /* Force vertical scrollbar while we render the html, otherwise
-        * the widget will make itself too wide to accept one, forcing
-        * otherwise unnecessary horizontal scrolling. */
-        gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(bm->scroll),
-                                       GTK_POLICY_AUTOMATIC,
-                                       GTK_POLICY_ALWAYS);
         html_widget = bm_widget_new_html(bm, mime_body);
 #endif
         return html_widget;


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