|
|
179080 |
From 6b4fcd4bb73c86c7754bcc912a557ba62180ae0b Mon Sep 17 00:00:00 2001
|
|
|
75f0c8 |
From: Cole Robinson <crobinso@redhat.com>
|
|
|
75f0c8 |
Date: Wed, 19 Mar 2014 14:57:27 -0400
|
|
|
75f0c8 |
Subject: [PATCH] Change gtk quit accelerator to ctrl+shift+q (bz 1062393)
|
|
|
75f0c8 |
|
|
|
75f0c8 |
Similar patches queued for 2.1
|
|
|
75f0c8 |
---
|
|
|
75f0c8 |
ui/gtk.c | 7 +++----
|
|
|
75f0c8 |
1 file changed, 3 insertions(+), 4 deletions(-)
|
|
|
75f0c8 |
|
|
|
75f0c8 |
diff --git a/ui/gtk.c b/ui/gtk.c
|
|
|
179080 |
index 00fbbcc..264326a 100644
|
|
|
75f0c8 |
--- a/ui/gtk.c
|
|
|
75f0c8 |
+++ b/ui/gtk.c
|
|
|
179080 |
@@ -1351,7 +1351,6 @@ static GtkWidget *gd_create_menu_machine(GtkDisplayState *s, GtkAccelGroup *acce
|
|
|
75f0c8 |
{
|
|
|
75f0c8 |
GtkWidget *machine_menu;
|
|
|
75f0c8 |
GtkWidget *separator;
|
|
|
75f0c8 |
- GtkStockItem item;
|
|
|
75f0c8 |
|
|
|
75f0c8 |
machine_menu = gtk_menu_new();
|
|
|
75f0c8 |
gtk_menu_set_accel_group(GTK_MENU(machine_menu), accel_group);
|
|
|
179080 |
@@ -1371,11 +1370,11 @@ static GtkWidget *gd_create_menu_machine(GtkDisplayState *s, GtkAccelGroup *acce
|
|
|
75f0c8 |
separator = gtk_separator_menu_item_new();
|
|
|
75f0c8 |
gtk_menu_shell_append(GTK_MENU_SHELL(machine_menu), separator);
|
|
|
75f0c8 |
|
|
|
75f0c8 |
- s->quit_item = gtk_image_menu_item_new_from_stock(GTK_STOCK_QUIT, NULL);
|
|
|
75f0c8 |
- gtk_stock_lookup(GTK_STOCK_QUIT, &item);
|
|
|
75f0c8 |
+ s->quit_item = gtk_menu_item_new_with_mnemonic(_("_Quit"));
|
|
|
75f0c8 |
gtk_menu_item_set_accel_path(GTK_MENU_ITEM(s->quit_item),
|
|
|
75f0c8 |
"<QEMU>/Machine/Quit");
|
|
|
75f0c8 |
- gtk_accel_map_add_entry("<QEMU>/Machine/Quit", item.keyval, item.modifier);
|
|
|
75f0c8 |
+ gtk_accel_map_add_entry("<QEMU>/Machine/Quit",
|
|
|
75f0c8 |
+ GDK_KEY_q, HOTKEY_MODIFIERS);
|
|
|
75f0c8 |
gtk_menu_shell_append(GTK_MENU_SHELL(machine_menu), s->quit_item);
|
|
|
75f0c8 |
|
|
|
75f0c8 |
return machine_menu;
|