diff options
author | Alexander Schwinn <alexxcons@xfce.org> | 2021-02-21 00:27:13 +0100 |
---|---|---|
committer | Alexander Schwinn <alexxcons@xfce.org> | 2021-03-03 21:57:17 +0100 |
commit | c13a9190d9995ca35bf7e7cded06a21282b9ee48 (patch) | |
tree | e423a179afb2e86bb88524c0d0c6fb9ed1608158 | |
parent | 1cf7782bccf378ef69fe34ebe5f8fe7089ae175e (diff) | |
download | thunar-c13a9190d9995ca35bf7e7cded06a21282b9ee48.tar.gz |
Reintroduce alternative zoom shortcuts (Issue #514)
Regression to thunar 1.8.x. Defaults for the alternative shortcuts are:
zoom-in:
<Primary>equal
<Primary>plus
zoom-out:
<Primary>minus
zoom-reset:
<Primary>0
-rw-r--r-- | thunar/thunar-window.c | 4 | ||||
-rw-r--r-- | thunar/thunar-window.h | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/thunar/thunar-window.c b/thunar/thunar-window.c index bbeccad3..e50f4ebf 100644 --- a/thunar/thunar-window.c +++ b/thunar/thunar-window.c @@ -387,8 +387,12 @@ static XfceGtkActionEntry thunar_window_action_entries[] = { THUNAR_WINDOW_ACTION_VIEW_MENUBAR, "<Actions>/ThunarWindow/view-menubar", "<Primary>m", XFCE_GTK_CHECK_MENU_ITEM, N_ ("_Menubar"), N_ ("Change the visibility of this window's menubar"), NULL, G_CALLBACK (thunar_window_action_menubar_changed), }, { THUNAR_WINDOW_ACTION_SHOW_HIDDEN, "<Actions>/ThunarWindow/show-hidden", "<Primary>h", XFCE_GTK_CHECK_MENU_ITEM, N_ ("Show _Hidden Files"), N_ ("Toggles the display of hidden files in the current window"), NULL, G_CALLBACK (thunar_window_action_show_hidden), }, { THUNAR_WINDOW_ACTION_ZOOM_IN, "<Actions>/ThunarWindow/zoom-in", "<Primary>KP_Add", XFCE_GTK_IMAGE_MENU_ITEM, N_ ("Zoom I_n"), N_ ("Show the contents in more detail"), "zoom-in-symbolic", G_CALLBACK (thunar_window_zoom_in), }, + { THUNAR_WINDOW_ACTION_ZOOM_IN_ALT_1, "<Actions>/ThunarWindow/zoom-in-alt1", "<Primary>plus", XFCE_GTK_IMAGE_MENU_ITEM, NULL, NULL, NULL, G_CALLBACK (thunar_window_zoom_in), }, + { THUNAR_WINDOW_ACTION_ZOOM_IN_ALT_2, "<Actions>/ThunarWindow/zoom-in-alt2", "<Primary>equal", XFCE_GTK_IMAGE_MENU_ITEM, NULL, NULL, NULL, G_CALLBACK (thunar_window_zoom_in), }, { THUNAR_WINDOW_ACTION_ZOOM_OUT, "<Actions>/ThunarWindow/zoom-out", "<Primary>KP_Subtract", XFCE_GTK_IMAGE_MENU_ITEM, N_ ("Zoom _Out"), N_ ("Show the contents in less detail"), "zoom-out-symbolic", G_CALLBACK (thunar_window_zoom_out), }, + { THUNAR_WINDOW_ACTION_ZOOM_OUT_ALT, "<Actions>/ThunarWindow/zoom-out-alt", "<Primary>minus", XFCE_GTK_IMAGE_MENU_ITEM, NULL, NULL, NULL, G_CALLBACK (thunar_window_zoom_out), }, { THUNAR_WINDOW_ACTION_ZOOM_RESET, "<Actions>/ThunarWindow/zoom-reset", "<Primary>KP_0", XFCE_GTK_IMAGE_MENU_ITEM, N_ ("Normal Si_ze"), N_ ("Show the contents at the normal size"), "zoom-original-symbolic", G_CALLBACK (thunar_window_zoom_reset), }, + { THUNAR_WINDOW_ACTION_ZOOM_RESET_ALT, "<Actions>/ThunarWindow/zoom-reset-alt", "<Primary>0", XFCE_GTK_IMAGE_MENU_ITEM, NULL, NULL, NULL, G_CALLBACK (thunar_window_zoom_reset), }, { THUNAR_WINDOW_ACTION_CLEAR_DIRECTORY_SPECIFIC_SETTINGS,"<Actions>/ThunarWindow/clear-directory-specific-settings","", XFCE_GTK_IMAGE_MENU_ITEM, N_ ("Clear Saved _Folder View Settings"), N_ ("Delete saved view settings for this folder"), NULL, G_CALLBACK (thunar_window_action_clear_directory_specific_settings), }, { THUNAR_WINDOW_ACTION_VIEW_AS_ICONS, "<Actions>/ThunarWindow/view-as-icons", "<Primary>1", XFCE_GTK_RADIO_MENU_ITEM, N_ ("_Icon View"), N_ ("Display folder content in an icon view"), NULL, G_CALLBACK (thunar_window_action_icon_view), }, { THUNAR_WINDOW_ACTION_VIEW_AS_DETAILED_LIST, "<Actions>/ThunarWindow/view-as-detailed-list", "<Primary>2", XFCE_GTK_RADIO_MENU_ITEM, N_ ("_List View"), N_ ("Display folder content in a detailed list view"), NULL, G_CALLBACK (thunar_window_action_detailed_view), }, diff --git a/thunar/thunar-window.h b/thunar/thunar-window.h index 38ea03c1..9cbcc85d 100644 --- a/thunar/thunar-window.h +++ b/thunar/thunar-window.h @@ -64,9 +64,12 @@ typedef enum THUNAR_WINDOW_ACTION_VIEW_MENUBAR, THUNAR_WINDOW_ACTION_SHOW_HIDDEN, THUNAR_WINDOW_ACTION_ZOOM_IN, - THUNAR_WINDOW_ACTION_ZOOM_IN_ALT, + THUNAR_WINDOW_ACTION_ZOOM_IN_ALT_1, + THUNAR_WINDOW_ACTION_ZOOM_IN_ALT_2, THUNAR_WINDOW_ACTION_ZOOM_OUT, + THUNAR_WINDOW_ACTION_ZOOM_OUT_ALT, THUNAR_WINDOW_ACTION_ZOOM_RESET, + THUNAR_WINDOW_ACTION_ZOOM_RESET_ALT, THUNAR_WINDOW_ACTION_CLEAR_DIRECTORY_SPECIFIC_SETTINGS, THUNAR_WINDOW_ACTION_VIEW_AS_ICONS, THUNAR_WINDOW_ACTION_VIEW_AS_DETAILED_LIST, |