Manually added commit 51a38.. from holizz
authorMason Larobina <mason.larobina@gmail.com>
Mon, 29 Jun 2009 11:12:29 +0000 (19:12 +0800)
committerMason Larobina <mason.larobina@gmail.com>
Mon, 29 Jun 2009 11:12:29 +0000 (19:12 +0800)
uzbl.c

diff --git a/uzbl.c b/uzbl.c
index e5db9e7..1bb94fd 100644 (file)
--- a/uzbl.c
+++ b/uzbl.c
@@ -2119,7 +2119,10 @@ update_title (void) {
             GdkColor color;
             gdk_color_parse (b->status_background, &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)
-            gtk_widget_modify_bg (uzbl.gui.vbox, GTK_STATE_NORMAL, &color);
+           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 (uzbl.gui.plug, GTK_STATE_NORMAL, &color);
         }
     } else {
         if (b->title_format_long) {