[virt-tools-list] [PATCH virt-viewer 13/19] Number display starting from 1

Christophe Fergeau cfergeau at redhat.com
Tue Jul 17 09:46:04 UTC 2012


Why? To match the window subtitle? Please add this to the commit log.
Id add a +1 as well to
DEBUG_LOG("Remove window %d %p", nth, win);
and
DEBUG_LOG("Insert window %d %p", nth, win);

Christophe

On Mon, Jul 16, 2012 at 06:57:48PM +0200, Marc-André Lureau wrote:
> ---
>  src/virt-viewer-app.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
> index f581531..f590641 100644
> --- a/src/virt-viewer-app.c
> +++ b/src/virt-viewer-app.c
> @@ -1638,7 +1638,7 @@ window_update_menu_displays_cb(gpointer key G_GNUC_UNUSED,
>          gboolean visible;
>          gchar *label;
>  
> -        label = g_strdup_printf(_("Display %d"), *nth);
> +        label = g_strdup_printf(_("Display %d"), *nth + 1);
>          item = gtk_check_menu_item_new_with_label(label);
>          g_free(label);
>          visible = gtk_widget_get_visible(GTK_WIDGET(virt_viewer_window_get_window(vwin)));
> -- 
> 1.7.10.4
> 
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20120717/001da276/attachment.sig>


More information about the virt-tools-list mailing list