[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 3/8] gtk: Don't use deprecated gtk_image_menu_item_ne
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 3/8] gtk: Don't use deprecated gtk_image_menu_item_new_with_mnemonic |
Date: |
Tue, 29 Apr 2014 11:46:09 +0200 |
From: Cole Robinson <address@hidden>
In these cases we weren't using an image in the menu item anyways, so
just do as the suggestion says. Should be fine for all qemu supported
gtk versions.
ui/gtk.c: In function ‘gd_create_menu_machine’:
ui/gtk.c:1284:5: error: ‘gtk_image_menu_item_new_with_mnemonic’ is deprecated
(declared at /usr/include/gtk-3.0/gtk/deprecated/gtkimagemenuitem.h:76): Use
'gtk_menu_item_new_with_mnemonic' instead [-Werror=deprecated-declarations]
s->reset_item = gtk_image_menu_item_new_with_mnemonic(_("_Reset"));
^
ui/gtk.c:1287:5: error: ‘gtk_image_menu_item_new_with_mnemonic’ is deprecated
(declared at /usr/include/gtk-3.0/gtk/deprecated/gtkimagemenuitem.h:76): Use
'gtk_menu_item_new_with_mnemonic' instead [-Werror=deprecated-declarations]
s->powerdown_item = gtk_image_menu_item_new_with_mnemonic(_("Power
_Down"));
Signed-off-by: Cole Robinson <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
ui/gtk.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ui/gtk.c b/ui/gtk.c
index 00fbbcc..a56678f 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -1362,10 +1362,10 @@ static GtkWidget
*gd_create_menu_machine(GtkDisplayState *s, GtkAccelGroup *acce
separator = gtk_separator_menu_item_new();
gtk_menu_shell_append(GTK_MENU_SHELL(machine_menu), separator);
- s->reset_item = gtk_image_menu_item_new_with_mnemonic(_("_Reset"));
+ s->reset_item = gtk_menu_item_new_with_mnemonic(_("_Reset"));
gtk_menu_shell_append(GTK_MENU_SHELL(machine_menu), s->reset_item);
- s->powerdown_item = gtk_image_menu_item_new_with_mnemonic(_("Power
_Down"));
+ s->powerdown_item = gtk_menu_item_new_with_mnemonic(_("Power _Down"));
gtk_menu_shell_append(GTK_MENU_SHELL(machine_menu), s->powerdown_item);
separator = gtk_separator_menu_item_new();
--
1.8.3.1
- [Qemu-devel] [PULL 0/8] gtk patch queue, Gerd Hoffmann, 2014/04/29
- [Qemu-devel] [PULL 2/8] configure: Re-run make if gtkabi/sdlabi is changed, Gerd Hoffmann, 2014/04/29
- [Qemu-devel] [PULL 5/8] gtk: Remove use of deprecated stock items, Gerd Hoffmann, 2014/04/29
- [Qemu-devel] [PULL 1/8] configure: Document --with-gtkabi, Gerd Hoffmann, 2014/04/29
- [Qemu-devel] [PULL 6/8] gtk: Use ctrl+alt+q for quit accelerator, Gerd Hoffmann, 2014/04/29
- [Qemu-devel] [PULL 3/8] gtk: Don't use deprecated gtk_image_menu_item_new_with_mnemonic,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 4/8] gtk: Don't use deprecated vte_terminal_get_adjustment, Gerd Hoffmann, 2014/04/29
- [Qemu-devel] [PULL 8/8] gtk: Fix accelerators being triggered twice with gtk3, Gerd Hoffmann, 2014/04/29
- [Qemu-devel] [PULL 7/8] gtk: Fix -serial vc, Gerd Hoffmann, 2014/04/29