Skip to content

Commit 1486af6

Browse files
author
smpl-os
committed
fix: add hardcoded accelerators to Show Places/Treeview GtkActionEntry
apply_keybinding() skips default-valued keys and relies on the GtkActionEntry's own accelerator being set. Since we had NULL, the accel map entry was never registered and the shortcuts did nothing.
1 parent 5d566ee commit 1486af6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/nemo-window-menus.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2274,9 +2274,9 @@ static const GtkActionEntry main_entries[] = {
22742274
G_CALLBACK (action_tabs_move_right_callback) },
22752275
{ "Sidebar List", NULL, N_("Sidebar") },
22762276
{ "Toolbar List", NULL, N_("Toolbar") },
2277-
{ NEMO_ACTION_SHOW_PLACES, NULL, N_("Show _Places Sidebar"), NULL, N_("Switch to Places sidebar panel"),
2277+
{ NEMO_ACTION_SHOW_PLACES, NULL, N_("Show _Places Sidebar"), "<Alt><Shift>p", N_("Switch to Places sidebar panel"),
22782278
G_CALLBACK (action_show_places_callback) },
2279-
{ NEMO_ACTION_SHOW_TREEVIEW, NULL, N_("Show _Tree Sidebar"), NULL, N_("Switch to Tree sidebar panel"),
2279+
{ NEMO_ACTION_SHOW_TREEVIEW, NULL, N_("Show _Tree Sidebar"), "<Alt><Shift>t", N_("Switch to Tree sidebar panel"),
22802280
G_CALLBACK (action_show_treeview_callback) },
22812281
};
22822282

0 commit comments

Comments
 (0)