[virt-tools-list] [PATCH virt-viewer 1/3] Add a dialog showing details of the current guest

Christophe Fergeau cfergeau at redhat.com
Thu Jun 26 19:49:55 UTC 2014


gcc also reported a bunch of warnings:
diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
index 1ea6c75..e2f91c5 100644
--- a/src/virt-viewer-window.c
+++ b/src/virt-viewer-window.c
@@ -1013,7 +1013,8 @@ virt_viewer_window_menu_view_release_cursor(GtkWidget *menu G_GNUC_UNUSED,
 }
 
 G_MODULE_EXPORT void
-virt_viewer_window_menu_help_guest_details(GtkWidget *menu, VirtViewerWindow *self)
+virt_viewer_window_menu_help_guest_details(GtkWidget *menu G_GNUC_UNUSED,
+                                           VirtViewerWindow *self)
 {
     GtkBuilder *ui = virt_viewer_util_load_ui("virt-viewer-guest-details.xml");
     char* name = NULL;
@@ -1029,8 +1030,8 @@ virt_viewer_window_menu_help_guest_details(GtkWidget *menu, VirtViewerWindow *se
         name = g_strdup(_("Unknown"));
     if (!uuid)
         uuid = g_strdup(_("Unknown"));
-    gtk_label_set_text(namelabel, name);
-    gtk_label_set_text(guidlabel, uuid);
+    gtk_label_set_text(GTK_LABEL(namelabel), name);
+    gtk_label_set_text(GTK_LABEL(guidlabel), uuid);
     g_free(name);
     g_free(uuid);


Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20140626/fd246a25/attachment.sig>


More information about the virt-tools-list mailing list