qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/7] ui: add basic GTK gui (v2)
Date: Wed, 05 Sep 2012 22:54:56 +0200	[thread overview]
Message-ID: <5047BC20.8000403@web.de> (raw)
In-Reply-To: <1346872724-9156-3-git-send-email-aliguori@us.ibm.com>

[-- Attachment #1: Type: text/plain, Size: 2041 bytes --]

On 2012-09-05 21:18, Anthony Liguori wrote:
> This is minimalistic and just contains the basic widget infrastructure.  The GUI
> consists of a menu and a GtkNotebook.  To start with, the notebook has its tabs
> hidden which provides a UI that looks very similar to SDL with the exception of
> the menu bar.
> 
> The menu bar allows a user to toggle the visibility of the tabs.  Cairo is used
> for rendering.
> 
> I used gtk-vnc as a reference.  gtk-vnc solves the same basic problems as QEMU
> since it was originally written as a remote display for QEMU.  So for the most
> part, the approach to rendering and keyboard handling should be pretty solid for
> GTK.
> 
> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
> ---
> v1 -> v2
>  - add gtk-vnc license
>  - fix key propagation

...

> +static void gd_create_menus(GtkDisplayState *s)
> +{
> +    GtkStockItem item;
> +    GtkAccelGroup *accel_group;
> +    GSList *group = NULL;
> +    GtkWidget *separator;
> +
> +    accel_group = gtk_accel_group_new();
> +    s->file_menu = gtk_menu_new();
> +    gtk_menu_set_accel_group(GTK_MENU(s->file_menu), accel_group);
> +    s->file_menu_item = gtk_menu_item_new_with_mnemonic("_File");
> +
> +    s->quit_item = gtk_image_menu_item_new_from_stock(GTK_STOCK_QUIT, NULL);
> +    gtk_stock_lookup(GTK_STOCK_QUIT, &item);
> +    gtk_menu_item_set_accel_path(GTK_MENU_ITEM(s->quit_item),
> +                                 "<QEMU>/File/Quit");
> +    gtk_accel_map_add_entry("<QEMU>/File/Quit", item.keyval, item.modifier);
> +
> +    s->view_menu = gtk_menu_new();
> +    gtk_menu_set_accel_group(GTK_MENU(s->view_menu), accel_group);
> +    s->view_menu_item = gtk_menu_item_new_with_mnemonic("_View");
> +
> +    separator = gtk_separator_menu_item_new();
> +    gtk_menu_append(GTK_MENU(s->view_menu), separator);
> +
> +    s->vga_item = gtk_radio_menu_item_new_with_mnemonic(group, "_VGA");

Minor nit, but "VGA" is the wrong name for QEMU in general. Maybe "Display"?

Jan



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]

  parent reply	other threads:[~2012-09-05 20:55 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-05 19:18 [Qemu-devel] [PATCH 0/7] Add GTK UI to enable basic accessibility (v3) Anthony Liguori
2012-09-05 19:18 ` [Qemu-devel] [PATCH 1/7] console: allow VCs to be overridden by UI Anthony Liguori
2012-09-05 19:18 ` [Qemu-devel] [PATCH 2/7] ui: add basic GTK gui (v2) Anthony Liguori
2012-09-05 19:53   ` Blue Swirl
2012-09-05 20:00     ` Eric Blake
2012-09-05 20:38     ` Anthony Liguori
2012-09-05 21:00       ` Blue Swirl
2012-09-05 23:07         ` Anthony Liguori
2012-09-08  7:00           ` Blue Swirl
2012-09-05 20:04   ` Stefan Weil
2012-09-05 20:39     ` Anthony Liguori
2012-09-05 20:45     ` Jan Kiszka
2012-09-05 22:55       ` Anthony Liguori
2012-09-05 20:54   ` Jan Kiszka [this message]
2012-09-05 19:18 ` [Qemu-devel] [PATCH 3/7] gtk: add virtual console support (v2) Anthony Liguori
2012-09-05 19:18 ` [Qemu-devel] [PATCH 4/7] gtk: add support for input grabbing (v2) Anthony Liguori
2012-09-05 19:37   ` Jan Kiszka
2012-09-05 20:40     ` Anthony Liguori
2012-09-05 20:43       ` Jan Kiszka
2012-09-05 19:18 ` [Qemu-devel] [PATCH 5/7] gtk: add support for screen scaling and full screen (v3) Anthony Liguori
2012-09-05 19:18 ` [Qemu-devel] [PATCH 6/7] gtk: add translation support Anthony Liguori
2012-09-06 12:18   ` Kevin Wolf
2012-09-06 12:40     ` Anthony Liguori
2012-09-06 13:00   ` Peter Maydell
2012-09-05 19:18 ` [Qemu-devel] [PATCH 7/7] gtk: make default UI (v3) Anthony Liguori

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=5047BC20.8000403@web.de \
    --to=jan.kiszka@web.de \
    --cc=aliguori@us.ibm.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).