Small patch for irrelevant scrollbar issue



Hi folks,

attached is a little patch against balsa-2.3.5 which solves an issue with the preview scrollbars I found. The srollbars won't be removed when all mailboxes are closed. You can find a screenshot of what I mean here:
http://user.phil-fak.uni-duesseldorf.de/~zerbe/balsa.png

Please do not feel offended by the strange mix of WinXP- and MacOS X-Themes I use on my system :-)

I really would appreciate if someone could commit this to CVS since it took me hours to find the relevant places in the code to fix it (of course only if you don't find any problems with the patch).

I only took the time to fix this without any knowledge of the code because these scrollbars not disappearing were annoying me for such a long time.

Regards
Sebastian Zerbe
diff -ur balsa-2.3.5/src/main-window.c balsa-2.3.5.new/src/main-window.c
--- balsa-2.3.5/src/main-window.c	2005-06-30 18:24:53.000000000 +0200
+++ balsa-2.3.5.new/src/main-window.c	2005-09-27 03:38:51.000000000 +0200
@@ -2295,6 +2295,8 @@
 #else
     real_open_mbnode(info);
 #endif
+    /* Part of the fix for scrollbar oddness */
+    gtk_widget_show(window->preview);
 }
 
 /* balsa_window_real_close_mbnode:
@@ -2343,6 +2345,9 @@
             balsa_window_idle_replace(window, NULL);
             gnome_appbar_set_default(balsa_app.appbar, "Mailbox closed");
 
+            /* Part of the fix for scrollbar oddness */
+            gtk_widget_hide(window->preview);
+
             /* Disable menus */
             balsa_window_enable_mailbox_menus(window, NULL);
             enable_message_menus(window, NULL);




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