aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/callbacks.c
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2010-10-21 15:13:50 -0600
committerGravatar Brendan Taylor <whateley@gmail.com>2010-10-21 15:13:50 -0600
commitf6139aa2ad2c4c0db96b004c38c120c73edbb971 (patch)
tree2dec620414dc2b557e36eb240794e19dd259d564 /src/callbacks.c
parent8a0d59fcbf70b4fbd827e87352b7efff29515500 (diff)
parent68ce1a4d1b5f9503ef89a798eb4936a7dd9ad9f8 (diff)
Merge branch 'dev/status-fixes'
Diffstat (limited to 'src/callbacks.c')
-rw-r--r--src/callbacks.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/callbacks.c b/src/callbacks.c
index eb39a9d..6ad8e2c 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -46,6 +46,19 @@ set_authentication_handler() {
}
void
+set_status_background() {
+ GdkColor color;
+ gdk_color_parse (uzbl.behave.status_background, &color);
+ /* labels and hboxes do not draw their own background. applying this
+ * on the vbox/main_window 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);
+}
+
+void
set_icon() {
if(file_exists(uzbl.gui.icon)) {
if (uzbl.gui.main_window)