Last active
December 25, 2015 11:39
-
-
Save catseye/6970944 to your computer and use it in GitHub Desktop.
Maintaining a fork of VICE on github is just waaay too much work. I'm just going to keep my patches somewhere instead. For now, that somewhere is a gist. This particular patch changes the quicksave/load menu item hotkeys to something that actually works on Ubuntu.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/arch/unix/gui/uicommands.c b/src/arch/unix/gui/uicommands.c | |
index fe89b2b..5e4aea2 100644 | |
--- a/src/arch/unix/gui/uicommands.c | |
+++ b/src/arch/unix/gui/uicommands.c | |
@@ -483,10 +483,10 @@ static UI_CALLBACK(sound_record_mp3) | |
{ "--", UI_MENU_TYPE_SEPARATOR }, | |
{ N_("Quickload snapshot"), UI_MENU_TYPE_NORMAL, | |
(ui_callback_t)load_quicksnap, NULL, NULL, | |
- KEYSYM_F10, UI_HOTMOD_META }, | |
+ KEYSYM_BRACKET_LEFT, UI_HOTMOD_META }, | |
{ N_("Quicksave snapshot"), UI_MENU_TYPE_NORMAL, | |
(ui_callback_t)save_quicksnap, NULL, NULL, | |
- KEYSYM_F11, UI_HOTMOD_META }, | |
+ KEYSYM_BRACKET_RIGHT, UI_HOTMOD_META }, | |
{ "--", UI_MENU_TYPE_SEPARATOR }, | |
{ N_("Select history directory"), UI_MENU_TYPE_NORMAL, | |
(ui_callback_t)events_select_dir, NULL, NULL }, | |
diff --git a/src/arch/unix/x11/gnome/uiarch.h b/src/arch/unix/x11/gnome/uiarch.h | |
index 21f54c8..01b8060 100644 | |
--- a/src/arch/unix/x11/gnome/uiarch.h | |
+++ b/src/arch/unix/x11/gnome/uiarch.h | |
@@ -78,7 +78,9 @@ enum ui_keysym_s { | |
KEYSYM_F9 = GDK_F9 , | |
KEYSYM_F10 = GDK_F10, | |
KEYSYM_F11 = GDK_F11, | |
- KEYSYM_F12 = GDK_F12 | |
+ KEYSYM_F12 = GDK_F12, | |
+ KEYSYM_BRACKET_LEFT = GDK_bracketleft, | |
+ KEYSYM_BRACKET_RIGHT = GDK_bracketright | |
}; | |
typedef enum ui_keysym_s ui_keysym_t; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment