[gnome-control-center/wip/gbsneto/list-layout: 19/28] window: keep search button always visible



commit 4322bf97471dcc1fc54e9f5fa32fb285b3e3153b
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sun May 22 14:03:46 2016 -0300

    window: keep search button always visible
    
    Since we're not changing the entire page when selecting
    a panel anymore, the search can stay visible all the
    time.
    
    This commit, then, removes the code that hides the search
    button when a panel is selected.

 shell/cc-window.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/shell/cc-window.c b/shell/cc-window.c
index c2faa71..919c483 100644
--- a/shell/cc-window.c
+++ b/shell/cc-window.c
@@ -883,13 +883,8 @@ stack_page_notify_cb (GtkStack     *stack,
 
   if (g_strcmp0 (id, OVERVIEW_PAGE) == 0 || g_strcmp0 (id, SEARCH_PAGE) == 0)
     {
-      gtk_widget_show (self->search_button);
       gtk_widget_hide (self->lock_button);
     }
-  else
-    {
-      gtk_widget_hide (self->search_button);
-    }
 }
 
 /* CcShell implementation */


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