Don't show the progressbar if the location shows progress

This commit is contained in:
Christian Dywan 2009-04-12 14:09:06 +02:00
parent 89698772bb
commit 81d67d3c2e

View file

@ -287,7 +287,8 @@ _midori_browser_update_interface (MidoriBrowser* browser)
g_object_set (action,
"stock-id", GTK_STOCK_STOP,
"tooltip", _("Stop loading the current page"), NULL);
gtk_widget_show (browser->progressbar);
if (!browser->progress_in_location || !GTK_WIDGET_VISIBLE (browser->navigationbar))
gtk_widget_show (browser->progressbar);
if (!GTK_WIDGET_VISIBLE (browser->statusbar) &&
!GTK_WIDGET_VISIBLE (browser->navigationbar) &&
browser->progress_in_location)