summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2013-02-22 20:33:34 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2013-02-22 14:49:00 -0600
commit104092825ac3274d16ffc35b7ef9ac8c636e1c48 (patch)
tree3f56a397d5ceee29313ef101b6a81da829b16479
parent28d2e5b27d538d94d2489d657b563c58b4d69bc4 (diff)
downloadqemu-104092825ac3274d16ffc35b7ef9ac8c636e1c48.tar.gz
qemu-104092825ac3274d16ffc35b7ef9ac8c636e1c48.tar.bz2
qemu-104092825ac3274d16ffc35b7ef9ac8c636e1c48.zip
ui/gtk: Use menu item from stock for full screen
This reduces the required translations and gives a nicer menu with an icon. The full screen menu item is no longer a check menu item. A checked item is not visible in full screen mode, so it is not needed for this special menu item. Signed-off-by: Stefan Weil <sw@weilnetz.de> Message-id: 1361561614-11180-1-git-send-email-sw@weilnetz.de Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--po/de_DE.po4
-rw-r--r--po/it.po4
-rw-r--r--po/messages.po4
-rw-r--r--ui/gtk.c5
4 files changed, 3 insertions, 14 deletions
diff --git a/po/de_DE.po b/po/de_DE.po
index cb74d7cfec..875578349d 100644
--- a/po/de_DE.po
+++ b/po/de_DE.po
@@ -24,10 +24,6 @@ msgstr "_Datei"
msgid "_View"
msgstr "_Ansicht"
-#: ../ui/gtk.c:1002
-msgid "_Full Screen"
-msgstr "Voll_bild"
-
#: ../ui/gtk.c:1029
msgid "Zoom To _Fit"
msgstr "Auf _Fenstergröße skalieren"
diff --git a/po/it.po b/po/it.po
index 2b23491aba..7d77fff2d3 100644
--- a/po/it.po
+++ b/po/it.po
@@ -24,10 +24,6 @@ msgstr "_File"
msgid "_View"
msgstr "_Visualizza"
-#: ../ui/gtk.c:1002
-msgid "_Full Screen"
-msgstr "_Schermo intero"
-
#: ../ui/gtk.c:1029
msgid "Zoom To _Fit"
msgstr "Adatta alla _finestra"
diff --git a/po/messages.po b/po/messages.po
index a90cd6ff9b..191e81cc7c 100644
--- a/po/messages.po
+++ b/po/messages.po
@@ -24,10 +24,6 @@ msgstr ""
msgid "_View"
msgstr ""
-#: ../ui/gtk.c:1002
-msgid "_Full Screen"
-msgstr ""
-
#: ../ui/gtk.c:1029
msgid "Zoom To _Fit"
msgstr ""
diff --git a/ui/gtk.c b/ui/gtk.c
index bc8bdfd6b2..0384f26988 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -633,7 +633,7 @@ static void gd_menu_full_screen(GtkMenuItem *item, void *opaque)
{
GtkDisplayState *s = opaque;
- if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(s->full_screen_item))) {
+ if (!s->full_screen) {
gtk_notebook_set_show_tabs(GTK_NOTEBOOK(s->notebook), FALSE);
gtk_widget_set_size_request(s->menu_bar, 0, 0);
gtk_widget_set_size_request(s->drawing_area, -1, -1);
@@ -1015,7 +1015,8 @@ static void gd_create_menus(GtkDisplayState *s)
gtk_menu_set_accel_group(GTK_MENU(s->view_menu), accel_group);
s->view_menu_item = gtk_menu_item_new_with_mnemonic(_("_View"));
- s->full_screen_item = gtk_check_menu_item_new_with_mnemonic(_("_Full Screen"));
+ s->full_screen_item =
+ gtk_image_menu_item_new_from_stock(GTK_STOCK_FULLSCREEN, NULL);
gtk_menu_item_set_accel_path(GTK_MENU_ITEM(s->full_screen_item),
"<QEMU>/View/Full Screen");
gtk_accel_map_add_entry("<QEMU>/View/Full Screen", GDK_KEY_f, GDK_CONTROL_MASK | GDK_MOD1_MASK);