]> git.armaanb.net Git - chorizo.git/commitdiff
Get rid of Gtk warning
authorPeter Hofmann <scm@uninformativ.de>
Tue, 14 Jun 2016 17:28:02 +0000 (19:28 +0200)
committerPeter Hofmann <scm@uninformativ.de>
Tue, 14 Jun 2016 17:28:02 +0000 (19:28 +0200)
Fixes this:

    (lariza:675): Gtk-WARNING **: Negative content width -2 (allocation 0, extents 1x1) while allocating gadget (node block, owner GtkLevelBar)

Funny enough, even without calling gtk_level_bar_set_value(), I get this
warning. Almost feels like a Gtk bug?

Closes #20.

browser.c

index 9a074744ce5a96d630cfcd8b68f5e390c988095c..44fe596bfcd22dc4aeee2c22a0a7345f595ea222 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -203,7 +203,7 @@ client_new(const gchar *uri)
     /* XXX Progress bars don't work/look as intended anymore. Level bars
      * are a dirty workaround (kind of). */
     c->progress = gtk_level_bar_new();
-    gtk_level_bar_set_value(GTK_LEVEL_BAR(c->progress), 0);
+    gtk_level_bar_set_value(GTK_LEVEL_BAR(c->progress), 1);
     gtk_widget_set_size_request(c->progress, 100, -1);
 
     c->top_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0);