mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 14:40:54 +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)
|
sysprof_window_init (SysprofWindow *self)
|
||||||
{
|
{
|
||||||
g_autoptr(GPropertyAction) show_left_sidebar = NULL;
|
g_autoptr(GPropertyAction) show_left_sidebar = NULL;
|
||||||
|
g_autoptr(GPropertyAction) show_right_sidebar = NULL;
|
||||||
|
|
||||||
gtk_widget_init_template (GTK_WIDGET (self));
|
gtk_widget_init_template (GTK_WIDGET (self));
|
||||||
|
|
||||||
@ -432,6 +433,11 @@ sysprof_window_init (SysprofWindow *self)
|
|||||||
self->left_split_overlay,
|
self->left_split_overlay,
|
||||||
"show-sidebar");
|
"show-sidebar");
|
||||||
g_action_map_add_action (G_ACTION_MAP (self), G_ACTION (show_left_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 *
|
GtkWidget *
|
||||||
|
|||||||
@ -8,6 +8,12 @@
|
|||||||
<property name="default-height">750</property>
|
<property name="default-height">750</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkShortcutController">
|
<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>
|
<child>
|
||||||
<object class="GtkShortcut">
|
<object class="GtkShortcut">
|
||||||
<property name="trigger">F9</property>
|
<property name="trigger">F9</property>
|
||||||
|
|||||||
Reference in New Issue
Block a user