aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-statusbar.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2007-03-25 07:09:11 +0800
committerChristian Persch <chpe@src.gnome.org>2007-03-25 07:09:11 +0800
commit3005e954fb5e63d52efd787a367d88b59adf7a68 (patch)
tree8a740fb9807f1a4dc9698ab08b9712a1802f8bfd /src/ephy-statusbar.c
parent82443d54ebe1776332e71fbc57ae5b1d85acfe4b (diff)
downloadgsoc2013-epiphany-3005e954fb5e63d52efd787a367d88b59adf7a68.tar
gsoc2013-epiphany-3005e954fb5e63d52efd787a367d88b59adf7a68.tar.gz
gsoc2013-epiphany-3005e954fb5e63d52efd787a367d88b59adf7a68.tar.bz2
gsoc2013-epiphany-3005e954fb5e63d52efd787a367d88b59adf7a68.tar.lz
gsoc2013-epiphany-3005e954fb5e63d52efd787a367d88b59adf7a68.tar.xz
gsoc2013-epiphany-3005e954fb5e63d52efd787a367d88b59adf7a68.tar.zst
gsoc2013-epiphany-3005e954fb5e63d52efd787a367d88b59adf7a68.zip
Make progressbar taller. Bug #421060.
2007-03-25 Christian Persch <chpe@gnome.org> * src/ephy-statusbar.c: (create_statusbar_progress): Make progressbar taller. Bug #421060. svn path=/trunk/; revision=6975
Diffstat (limited to 'src/ephy-statusbar.c')
-rw-r--r--src/ephy-statusbar.c22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/ephy-statusbar.c b/src/ephy-statusbar.c
index a3de55811..c2e9e0710 100644
--- a/src/ephy-statusbar.c
+++ b/src/ephy-statusbar.c
@@ -1,7 +1,7 @@
/*
* Copyright © 2002 Jorn Baayen
* Copyright © 2003, 2004 Marco Pesenti Gritti
- * Copyright © 2004 Christian Persch
+ * Copyright © 2004, 2007 Christian Persch
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -220,15 +220,21 @@ create_statusbar_progress (EphyStatusbar *s)
EphyStatusbarPrivate *priv = s->priv;
GtkWidget *vbox;
- vbox = gtk_vbox_new (TRUE, 0);
- gtk_box_pack_end (GTK_BOX (priv->hbox), vbox, FALSE, TRUE, 0);
+ vbox = gtk_vbox_new (FALSE, 0);
+ gtk_box_pack_end (GTK_BOX (priv->hbox), vbox, FALSE, FALSE, 0);
- s->priv->progressbar = gtk_progress_bar_new ();
- gtk_box_pack_start(GTK_BOX (vbox),
- GTK_WIDGET (s->priv->progressbar),
- FALSE, FALSE, 0);
+ priv->progressbar = gtk_progress_bar_new ();
+ gtk_box_pack_start (GTK_BOX (vbox),
+ GTK_WIDGET (priv->progressbar),
+ TRUE, TRUE, 1);
+
+ /* We need to set the vertical size request to a small value here,
+ * because the progressbar's default size request is taller than the whole
+ * statusbar. Packing it with expand&fill in the vbox above will nevertheless
+ * make it use the greatest available height.
+ */
+ gtk_widget_set_size_request (priv->progressbar, -1, 10);
- gtk_widget_set_size_request (s->priv->progressbar, -1, 10);
gtk_widget_show_all (vbox);
}