[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 5/5] gtk: Use ctrl+alt+q for quit accelerator
From: |
Cole Robinson |
Subject: |
[Qemu-devel] [PATCH v3 5/5] gtk: Use ctrl+alt+q for quit accelerator |
Date: |
Mon, 17 Mar 2014 16:06:27 -0400 |
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 <address@hidden>
---
v3:
Fix building with old gtk2
ui/gtk.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ui/gtk.c b/ui/gtk.c
index 9670567..ab08fe0 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -88,6 +88,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
@@ -1328,7 +1329,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;
--
1.8.5.3
- [Qemu-devel] [PATCH v3 0/5] gtk: Fix deprecation warnings, misc bug fixes, Cole Robinson, 2014/03/17
- [Qemu-devel] [PATCH v3 1/5] configure: Document --with-gtkabi, Cole Robinson, 2014/03/17
- [Qemu-devel] [PATCH v3 5/5] gtk: Use ctrl+alt+q for quit accelerator,
Cole Robinson <=
- [Qemu-devel] [PATCH v3 2/5] gtk: Don't use deprecated gtk_image_menu_item_new_with_mnemonic, Cole Robinson, 2014/03/17
- [Qemu-devel] [PATCH v3 3/5] gtk: Don't use deprecated vte_terminal_get_adjustment, Cole Robinson, 2014/03/17
- [Qemu-devel] [PATCH v3 4/5] gtk: Remove use of deprecated stock items, Cole Robinson, 2014/03/17
- Re: [Qemu-devel] [PATCH v3 0/5] gtk: Fix deprecation warnings, misc bug fixes, Gerd Hoffmann, 2014/03/18