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

Marc-André Lureau marcandre.lureau at gmail.com
Tue Jul 17 19:24:55 UTC 2012


---
 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 727eb81..3d7ff68 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -1639,7 +1639,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




More information about the virt-tools-list mailing list