]> git.armaanb.net Git - chorizo.git/commitdiff
Workaround for graphical padding artifact
authorPeter Hofmann <scm@uninformativ.de>
Sun, 8 Jul 2018 12:46:35 +0000 (14:46 +0200)
committerPeter Hofmann <scm@uninformativ.de>
Tue, 10 Jul 2018 17:00:01 +0000 (19:00 +0200)
browser.c

index 907d245601fa382ad50c96c44578608d89a4bcf4..84e1ae721c8a99325ee38221d70a698c87d81938 100644 (file)
--- 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);