Set the background on the vbox, not the main_window.
authorTom Adams <tom@holizz.com>
Sat, 11 Jul 2009 10:31:02 +0000 (11:31 +0100)
committerTom Adams <tom@holizz.com>
Sat, 11 Jul 2009 10:31:02 +0000 (11:31 +0100)
uzbl.c

diff --git a/uzbl.c b/uzbl.c
index 66adc16..f6dc7b8 100644 (file)
--- a/uzbl.c
+++ b/uzbl.c
@@ -2120,11 +2120,11 @@ update_title (void) {
         if (b->status_background) {
             GdkColor color;
             gdk_color_parse (b->status_background, &color);
-            //labels and hboxes do not draw their own background. applying this on the window/vbox is ok as the statusbar is the only affected widget. (if not, we could also use GtkEventBox)
-           if (uzbl.gui.main_window)
-                   gtk_widget_modify_bg (uzbl.gui.main_window, GTK_STATE_NORMAL, &color);
-           else if (uzbl.gui.plug)
-                   gtk_widget_modify_bg ((GtkWidget * ) uzbl.gui.plug, GTK_STATE_NORMAL, &color);
+            //labels and hboxes do not draw their own background. applying this on the vbox is ok as the statusbar is the only affected widget. (if not, we could also use GtkEventBox)
+            if (uzbl.gui.main_window)
+                gtk_widget_modify_bg (uzbl.gui.main_window, GTK_STATE_NORMAL, &color);
+            else if (uzbl.gui.plug)
+                gtk_widget_modify_bg (GTK_WIDGET(uzbl.gui.plug), GTK_STATE_NORMAL, &color);
         }
     } else {
         if (b->title_format_long) {