From 135e1019b2525bcec6bb14c39e6a3e4ea601f879 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 19 Jul 2023 20:44:01 -0700 Subject: [PATCH] sysprof: add ctrl+f9 for right sidebar --- src/sysprof/sysprof-window.c | 6 ++++++ src/sysprof/sysprof-window.ui | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/sysprof/sysprof-window.c b/src/sysprof/sysprof-window.c index 612c0a5d..2fe997d6 100644 --- a/src/sysprof/sysprof-window.c +++ b/src/sysprof/sysprof-window.c @@ -425,6 +425,7 @@ static void sysprof_window_init (SysprofWindow *self) { g_autoptr(GPropertyAction) show_left_sidebar = NULL; + g_autoptr(GPropertyAction) show_right_sidebar = NULL; gtk_widget_init_template (GTK_WIDGET (self)); @@ -432,6 +433,11 @@ sysprof_window_init (SysprofWindow *self) self->left_split_overlay, "show-sidebar"); g_action_map_add_action (G_ACTION_MAP (self), G_ACTION (show_left_sidebar)); + + show_right_sidebar = g_property_action_new ("show-right-sidebar", + self->right_split_overlay, + "show-sidebar"); + g_action_map_add_action (G_ACTION_MAP (self), G_ACTION (show_right_sidebar)); } GtkWidget * diff --git a/src/sysprof/sysprof-window.ui b/src/sysprof/sysprof-window.ui index bd1b9521..b257a176 100644 --- a/src/sysprof/sysprof-window.ui +++ b/src/sysprof/sysprof-window.ui @@ -8,6 +8,12 @@ 750 + + + <control>F9 + action(win.show-right-sidebar) + + F9