summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hofmann <scm@uninformativ.de>2018-07-08 14:46:35 +0200
committerPeter Hofmann <scm@uninformativ.de>2018-07-10 19:00:01 +0200
commitb19e4ee0b71020822481195dc8bb2b64590a6dec (patch)
tree574f7867da0cc72b4ca4e25dda838f68fb854d83
parent719cc8263a191ad5d6c13b566970c13ec00fc6c1 (diff)
downloadlariza-b19e4ee0b71020822481195dc8bb2b64590a6dec.tar.gz
Workaround for graphical padding artifact
-rw-r--r--browser.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/browser.c b/browser.c
index 907d245..84e1ae7 100644
--- a/browser.c
+++ b/browser.c
@@ -262,6 +262,14 @@ client_new(const gchar *uri, WebKitWebView *related_wv, gboolean show)
G_CALLBACK(key_location), c);
g_signal_connect(G_OBJECT(c->location), "icon-release",
G_CALLBACK(icon_location), c);
+ /* XXX This is a workaround. Setting this to NULL (which is done in
+ * feed_icon() if no feed has been detected) adds a little padding
+ * left of the text. Not sure why. The point of this call right
+ * here is to have that padding right from the start. This avoids a
+ * graphical artifact. */
+ gtk_entry_set_icon_from_icon_name(GTK_ENTRY(c->location),
+ GTK_ENTRY_ICON_PRIMARY,
+ NULL);
c->vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0);
gtk_box_pack_start(GTK_BOX(c->vbox), c->location, FALSE, FALSE, 0);