sysprof: add ctrl+f9 for right sidebar

This commit is contained in:
Christian Hergert
2023-07-19 20:44:01 -07:00
parent 3845e0c00e
commit 135e1019b2
2 changed files with 12 additions and 0 deletions

View File

@ -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 *

View File

@ -8,6 +8,12 @@
<property name="default-height">750</property>
<child>
<object class="GtkShortcutController">
<child>
<object class="GtkShortcut">
<property name="trigger">&lt;control&gt;F9</property>
<property name="action">action(win.show-right-sidebar)</property>
</object>
</child>
<child>
<object class="GtkShortcut">
<property name="trigger">F9</property>