[Xfce4-commits] <midori:master> Show statusbar on new transfars if transferbar is visible

Christian Dywan noreply at xfce.org
Mon Sep 13 01:42:01 CEST 2010


Updating branch refs/heads/master
         to db6e5954e8f25f5cef66bddbd8e1ee0c47dba778 (commit)
       from 195c5191ef2e696463760b8271594c4cfa55a3b1 (commit)

commit db6e5954e8f25f5cef66bddbd8e1ee0c47dba778
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun Sep 12 20:14:48 2010 +0200

    Show statusbar on new transfars if transferbar is visible

 midori/midori-browser.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index dfa0070..0a17b7a 100644
--- a/midori/midori-browser.c
+++ b/midori/midori-browser.c
@@ -388,7 +388,7 @@ _midori_browser_set_statusbar_text (MidoriBrowser* browser,
 
     katze_assign (browser->statusbar_text, sokoke_format_uri_for_display (text));
 
-    if (!gtk_widget_get_visible (browser->statusbar) && !is_location)
+    if (!browser->show_statusbar && !is_location)
     {
         GtkAction* action = _action_by_name (browser, "Location");
         MidoriLocationAction* location_action = MIDORI_LOCATION_ACTION (action);
@@ -992,6 +992,11 @@ midori_browser_prepare_download (MidoriBrowser*  browser,
     }
 
     webkit_download_set_destination_uri (download, uri);
+    if (!browser->show_statusbar && gtk_widget_get_visible (browser->transferbar))
+    {
+        _midori_browser_set_statusbar_text (browser, NULL);
+        gtk_widget_show (browser->statusbar);
+    }
     midori_transferbar_add_download_item (MIDORI_TRANSFERBAR (browser->transferbar), download);
     return TRUE;
 }



More information about the Xfce4-commits mailing list