Cosmetic patch 4 mailbox notebook tabs



Hi,

do you remember the problem that the mailbox notebook tabs look bad with  
some gtk themes due to the event box used to display to mailbox name in a  
tooltip? In Gtk 2.4.0, coming with the brand-new gnome 2.6 release, this  
is easy to fix using a built-in gtk function. The patch is actually a  
three-liner:

~~~snip here~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- balsa/src/main-window.c     2004-02-10 20:21:02.000000000 +0100
+++ balsa1/src/main-window.c     2004-04-04 18:54:23.000000000 +0200
@@ -1366,6 +1366,10 @@
                         G_CALLBACK(mailbox_tab_size_request), NULL);
 #endif                          /* BALSA_MAJOR < 2 */

+#if GTK_CHECK_VERSION(2, 4, 0)
+       gtk_event_box_set_visible_window(GTK_EVENT_BOX(ev), FALSE);
+#endif
+
        gtk_button_set_relief(GTK_BUTTON (but), GTK_RELIEF_NONE);
        gtk_container_add(GTK_CONTAINER (but), close_pix);

~~~snip here~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

We might also want to remove the check for balsa major version < 2 above,  
btw...

Cheers, Albrecht.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Albrecht Dreß  -  Johanna-Kirchner-Straße 13  -  D-53123 Bonn (Germany)
       Phone (+49) 228 6199571  -  mailto:albrecht.dress@arcor.de
_________________________________________________________________________

PGP signature



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