about summary refs log tree commit diff stats
path: root/settings.c
diff options
context:
space:
mode:
authorJosh Rickmar <jrick@devio.us>2012-07-13 16:49:23 -0400
committerJosh Rickmar <jrick@devio.us>2012-07-13 16:49:23 -0400
commitfb09a625f24b7f18d02a702e251f225348a67601 (patch)
tree04b774464fff070c665a93a7e05eae2ea20f8a60 /settings.c
parentdf94016aeecc4512fbc28f1e9d79c7751d6a9488 (diff)
downloadxombrero-fb09a625f24b7f18d02a702e251f225348a67601.tar.gz
Make all the statusbar elements GtkLabel widgets instead of GtkEntry
widgets (with the exception of the uri, we need this for the
progressbar).  Because labels only take up as much room as they need,
the statusbar elements now dynamically fit together in a GtkBox
instead of giving GtkEntry a fixed size.  Because the background color
of labels can not be colored directly, place a GtkEventBox underneath
the packing GtkBox (which is also transparent) and color that when
changing the colors for HTTPS sites.
Diffstat (limited to 'settings.c')
-rw-r--r--settings.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/settings.c b/settings.c
index a0e73b8..5f2fc56 100644
--- a/settings.c
+++ b/settings.c
@@ -587,7 +587,7 @@ set_statusbar_font(char *value)
 	statusbar_font = pango_font_description_from_string(
 	    statusbar_font_name);
 	TAILQ_FOREACH(t, &tabs, entry) {
-		gtk_widget_modify_font(GTK_WIDGET(t->sbe.statusbar),
+		gtk_widget_modify_font(GTK_WIDGET(t->sbe.uri),
 		    statusbar_font);
 		gtk_widget_modify_font(GTK_WIDGET(t->sbe.buffercmd),
 		    statusbar_font);
@@ -2228,7 +2228,7 @@ setup_proxy(char *uri)
 		soup_uri_free(proxy_uri);
 		proxy_uri = NULL;
 		TAILQ_FOREACH(t, &tabs, entry)
-			gtk_entry_set_text(GTK_ENTRY(t->sbe.proxy), "");
+			gtk_label_set_text(GTK_LABEL(t->sbe.proxy), "");
 	}
 	if (http_proxy) {
 		if (http_proxy != uri) {
@@ -2245,7 +2245,7 @@ setup_proxy(char *uri)
 			g_object_set(session, "proxy-uri", proxy_uri,
 			    (char *)NULL);
 			TAILQ_FOREACH(t, &tabs, entry)
-				gtk_entry_set_text(GTK_ENTRY(t->sbe.proxy),
+				gtk_label_set_text(GTK_LABEL(t->sbe.proxy),
 				    "proxy");
 		}
 	}