[file-roller] window: hide the locationbar when no archive is present



commit ad4c49443dc1d641847d77b6625ba068d71764d2
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Dec 20 19:06:59 2013 +0100

    window: hide the locationbar when no archive is present

 src/fr-window.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 8dcae60..7d73e99 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -1687,12 +1687,10 @@ fr_window_update_current_location (FrWindow *window)
        char       *path;
        GtkTreeIter iter;
 
-       if (window->priv->list_mode == FR_WINDOW_LIST_MODE_FLAT) {
-               gtk_widget_hide (window->priv->location_bar);
-               return;
-       }
+       gtk_widget_set_visible (window->priv->location_bar, window->priv->archive_present && 
(window->priv->list_mode == FR_WINDOW_LIST_MODE_AS_DIR));
 
-       gtk_widget_show (window->priv->location_bar);
+       if (window->priv->list_mode == FR_WINDOW_LIST_MODE_FLAT)
+               return;
 
        gtk_entry_set_text (GTK_ENTRY (window->priv->location_entry), window->priv->archive_present? 
current_dir: "");
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]