diff options
author | Cole Robinson <crobinso@redhat.com> | 2014-03-17 16:06:27 -0400 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-04-29 10:46:30 +0200 |
commit | db1da1f2b5f3a2383030438553988f0734a97dbe (patch) | |
tree | 58e4ea6eeb3b22816fc3c086d35743c6a5a1e579 /ui | |
parent | 3d914488aee3dc1bf495e461aedf8fb4e5bb2270 (diff) | |
download | qemu-db1da1f2b5f3a2383030438553988f0734a97dbe.zip qemu-db1da1f2b5f3a2383030438553988f0734a97dbe.tar.gz qemu-db1da1f2b5f3a2383030438553988f0734a97dbe.tar.bz2 |
gtk: Use ctrl+alt+q for quit accelerator
Using the standard ctrl+q makes it too easy to kill the whole VM. Using
ctrl+alt+FOO is consistent with our other accelerators.
https://bugzilla.redhat.com/show_bug.cgi?id=1062393
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -93,6 +93,7 @@ static inline void gdk_drawable_get_size(GdkWindow *w, gint *ww, gint *wh) #define GDK_KEY_2 GDK_2 #define GDK_KEY_f GDK_f #define GDK_KEY_g GDK_g +#define GDK_KEY_q GDK_q #define GDK_KEY_plus GDK_plus #define GDK_KEY_minus GDK_minus #endif @@ -1378,7 +1379,7 @@ static GtkWidget *gd_create_menu_machine(GtkDisplayState *s, GtkAccelGroup *acce gtk_menu_item_set_accel_path(GTK_MENU_ITEM(s->quit_item), "<QEMU>/Machine/Quit"); gtk_accel_map_add_entry("<QEMU>/Machine/Quit", - GDK_KEY_q, GDK_CONTROL_MASK); + GDK_KEY_q, HOTKEY_MODIFIERS); gtk_menu_shell_append(GTK_MENU_SHELL(machine_menu), s->quit_item); return machine_menu; |