[gnome-control-center/wip/gbsneto/list-layout: 9/15] window: keep searchbar visible when panel changes



commit ffc10662d7edab4da54b2264a224c2710c1b26e9
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sun May 22 13:39:06 2016 -0300

    window: keep searchbar visible when panel changes
    
    The sidebar width is determined by the search entry,
    and now it changes whenever we open a panel. This
    would also break the desired behavior of keeping
    the search visible - something impossible before.
    
    Fix that by not hiding the search bar when the visible
    panel changes.

 shell/cc-window.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/shell/cc-window.c b/shell/cc-window.c
index 9c0a5f7..f838cae 100644
--- a/shell/cc-window.c
+++ b/shell/cc-window.c
@@ -887,14 +887,12 @@ stack_page_notify_cb (GtkStack     *stack,
     {
       gtk_widget_hide (self->previous_button);
       gtk_widget_show (self->search_button);
-      gtk_widget_show (self->search_bar);
       gtk_widget_hide (self->lock_button);
     }
   else
     {
       gtk_widget_show (self->previous_button);
       gtk_widget_hide (self->search_button);
-      gtk_widget_hide (self->search_bar);
     }
 }
 


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