[gnome-control-center/gbsneto/panel-widget-in-sidebar: 2/4] fixup! window: Instrument some functions
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gbsneto/panel-widget-in-sidebar: 2/4] fixup! window: Instrument some functions
- Date: Fri, 16 Nov 2018 21:23:04 +0000 (UTC)
commit 5c26718ac4ec9a11a167f1f8ed2b35e88136140c
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Nov 16 19:21:20 2018 -0200
fixup! window: Instrument some functions
shell/cc-window.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/shell/cc-window.c b/shell/cc-window.c
index 8d84eaf83..cb02e6d62 100644
--- a/shell/cc-window.c
+++ b/shell/cc-window.c
@@ -383,11 +383,15 @@ setup_model (CcWindow *shell)
static void
update_headerbar_buttons (CcWindow *self)
{
+ CcPanelListView current_view;
gboolean is_main_view;
CC_ENTRY;
- is_main_view = cc_panel_list_get_view (CC_PANEL_LIST (self->panel_list)) == CC_PANEL_LIST_MAIN;
+ current_view = cc_panel_list_get_view (CC_PANEL_LIST (self->panel_list));
+ is_main_view = current_view == CC_PANEL_LIST_MAIN;
+
+ CC_TRACE_MSG ("Current view: %d", current_view);
gtk_widget_set_visible (self->previous_button, !is_main_view);
gtk_widget_set_visible (self->search_button, is_main_view);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]