qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] gtk: Add control menu with stop, reset and powe


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] gtk: Add control menu with stop, reset and power-down entries
Date: Fri, 22 Feb 2013 10:51:00 -0600
User-agent: Notmuch/0.13.2+93~ged93d79 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu)

Jan Kiszka <address@hidden> writes:

> On 2013-02-22 16:38, Jan Kiszka wrote:
>>>> @@ -995,6 +1038,22 @@ static void gd_create_menus(GtkDisplayState *s)
>>>>                                   "<QEMU>/File/Quit");
>>>>      gtk_accel_map_add_entry("<QEMU>/File/Quit", item.keyval, 
>>>> item.modifier);
>>>>  
>>>> +    s->control_menu = gtk_menu_new();
>>>> +    gtk_menu_set_accel_group(GTK_MENU(s->control_menu), accel_group);
>>>> +    s->control_menu_item = gtk_menu_item_new_with_mnemonic(_("_Control"));
>>>> +
>>>> +    s->stop_item = gtk_check_menu_item_new_with_mnemonic(_("_Stop"));
>>>> +    gtk_menu_append(GTK_MENU(s->control_menu), s->stop_item);
>>>
>>> There's a stock menu for this.
>>>
>>> http://developer.gnome.org/gtk3/stable/gtk3-Stock-Items.html#GTK-STOCK-STOP:CAPS
>> 
>> Ok, v2 follows.
>
> Hmm, I suppose "stock image" and "check" exclude each other, don't they?
> Still, I will pick up the accelerator.

Yeah, but you can pick up the label text which should be automagically
internationalized.

Regards,

Anthony Liguori

>
> Jan
>
> -- 
> Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
> Corporate Competence Center Embedded Linux




reply via email to

[Prev in Thread] Current Thread [Next in Thread]