From: Cole Robinson <crobinso@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>,
Anthony Liguori <aliguori@amazon.com>,
Cole Robinson <crobinso@redhat.com>
Subject: [Qemu-devel] [PATCH v3 2/5] gtk: Don't use deprecated gtk_image_menu_item_new_with_mnemonic
Date: Mon, 17 Mar 2014 16:06:24 -0400 [thread overview]
Message-ID: <024cbafa62189f1ab0e4dda7b1b33e850d8faa00.1395085847.git.crobinso@redhat.com> (raw)
In-Reply-To: <cover.1395085847.git.crobinso@redhat.com>
In-Reply-To: <cover.1395085847.git.crobinso@redhat.com>
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 <crobinso@redhat.com>
---
ui/gtk.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ui/gtk.c b/ui/gtk.c
index baabf86..8d2873a 100644
--- a/ui/gtk.c
+++ b/ui/gtk.c
@@ -1312,10 +1312,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.5.3
next prev parent reply other threads:[~2014-03-17 20:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-17 20:06 [Qemu-devel] [PATCH v3 0/5] gtk: Fix deprecation warnings, misc bug fixes Cole Robinson
2014-03-17 20:06 ` [Qemu-devel] [PATCH v3 1/5] configure: Document --with-gtkabi Cole Robinson
2014-03-17 20:06 ` Cole Robinson [this message]
2014-03-17 20:06 ` [Qemu-devel] [PATCH v3 3/5] gtk: Don't use deprecated vte_terminal_get_adjustment Cole Robinson
2014-03-17 20:06 ` [Qemu-devel] [PATCH v3 4/5] gtk: Remove use of deprecated stock items Cole Robinson
2014-03-17 20:06 ` [Qemu-devel] [PATCH v3 5/5] gtk: Use ctrl+alt+q for quit accelerator Cole Robinson
2014-03-18 7:28 ` [Qemu-devel] [PATCH v3 0/5] gtk: Fix deprecation warnings, misc bug fixes Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=024cbafa62189f1ab0e4dda7b1b33e850d8faa00.1395085847.git.crobinso@redhat.com \
--to=crobinso@redhat.com \
--cc=aliguori@amazon.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).