aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-statusbar.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-05-21 06:43:09 +0800
committerChristian Persch <chpe@src.gnome.org>2004-05-21 06:43:09 +0800
commitc47ab000bf17336ea1b862977a781c4dfd48e7a9 (patch)
treebfa236d6c8b84e823cd6718e4b0a80e3ed267b6f /src/ephy-statusbar.c
parentc62226f7741fc863ca0fc5222f631790b19f15b6 (diff)
downloadgsoc2013-epiphany-c47ab000bf17336ea1b862977a781c4dfd48e7a9.tar
gsoc2013-epiphany-c47ab000bf17336ea1b862977a781c4dfd48e7a9.tar.gz
gsoc2013-epiphany-c47ab000bf17336ea1b862977a781c4dfd48e7a9.tar.bz2
gsoc2013-epiphany-c47ab000bf17336ea1b862977a781c4dfd48e7a9.tar.lz
gsoc2013-epiphany-c47ab000bf17336ea1b862977a781c4dfd48e7a9.tar.xz
gsoc2013-epiphany-c47ab000bf17336ea1b862977a781c4dfd48e7a9.tar.zst
gsoc2013-epiphany-c47ab000bf17336ea1b862977a781c4dfd48e7a9.zip
Elimiate indeterminate progress, fixes bugs #142303 and #142305.
2004-05-21 Christian Persch <chpe@cvs.gnome.org> * src/ephy-statusbar.c: (ephy_statusbar_set_progress): * src/ephy-tab.c: (ephy_tab_class_init), (build_load_percent), (ephy_tab_net_state_cb), (ephy_tab_get_load_percent): Elimiate indeterminate progress, fixes bugs #142303 and #142305.
Diffstat (limited to 'src/ephy-statusbar.c')
-rwxr-xr-xsrc/ephy-statusbar.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/ephy-statusbar.c b/src/ephy-statusbar.c
index a3b62e575..1e8d22259 100755
--- a/src/ephy-statusbar.c
+++ b/src/ephy-statusbar.c
@@ -227,8 +227,7 @@ ephy_statusbar_set_security_state (EphyStatusbar *statusbar,
/**
* ephy_statusbar_set_progress:
* @statusbar: a #EphyStatusbar
- * @progress: the progress as an integer between 0 and 100, or -1 to show
- * interminate progress
+ * @progress: the progress as an integer between 0 and 100 per cent.
*
* Sets the statusbar's progress.
**/
@@ -236,15 +235,8 @@ void
ephy_statusbar_set_progress (EphyStatusbar *statusbar,
int progress)
{
- if (progress == -1)
- {
- gtk_progress_bar_pulse (GTK_PROGRESS_BAR (statusbar->priv->progressbar));
- }
- else
- {
- gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (statusbar->priv->progressbar),
- (float) (progress) / 100.0);
- }
+ gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (statusbar->priv->progressbar),
+ (float) (progress) / 100.0);
if (progress < 100)
{