mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
sysprof: add ctrl+f9 for right sidebar
This commit is contained in:
@ -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 *
|
||||
|
||||
@ -8,6 +8,12 @@
|
||||
<property name="default-height">750</property>
|
||||
<child>
|
||||
<object class="GtkShortcutController">
|
||||
<child>
|
||||
<object class="GtkShortcut">
|
||||
<property name="trigger"><control>F9</property>
|
||||
<property name="action">action(win.show-right-sidebar)</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkShortcut">
|
||||
<property name="trigger">F9</property>
|
||||
|
||||
Reference in New Issue
Block a user