[virt-tools-list] [PATCH] virt-viewer: Tune the first argument in calls to g_type_class_add_private()

Guannan Ren gren at redhat.com
Wed Jan 18 11:54:28 UTC 2012


---
 src/view/autoDrawer.c           |    2 +-
 src/view/drawer.c               |    2 +-
 src/view/ovBox.c                |    2 +-
 src/virt-viewer-display-spice.c |    2 +-
 src/virt-viewer-display-vnc.c   |    2 +-
 src/virt-viewer-display.c       |    2 +-
 src/virt-viewer-session-spice.c |    2 +-
 src/virt-viewer-session-vnc.c   |    2 +-
 src/virt-viewer-session.c       |    2 +-
 9 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/view/autoDrawer.c b/src/view/autoDrawer.c
index 6fa5483..7242a02 100644
--- a/src/view/autoDrawer.c
+++ b/src/view/autoDrawer.c
@@ -653,7 +653,7 @@ ViewAutoDrawerClassInit(gpointer klass) // IN
 
    ovBoxClass->set_over = ViewAutoDrawerSetOver;
 
-   g_type_class_add_private(objectClass, sizeof(ViewAutoDrawerPrivate));
+   g_type_class_add_private(klass, sizeof(ViewAutoDrawerPrivate));
 }
 
 
diff --git a/src/view/drawer.c b/src/view/drawer.c
index 43b7e1a..989b5ca 100644
--- a/src/view/drawer.c
+++ b/src/view/drawer.c
@@ -139,7 +139,7 @@ ViewDrawerClassInit(gpointer klass) // IN
 
    objectClass->finalize = ViewDrawerFinalize;
 
-   g_type_class_add_private(objectClass, sizeof(ViewDrawerPrivate));
+   g_type_class_add_private(klass, sizeof(ViewDrawerPrivate));
 }
 
 
diff --git a/src/view/ovBox.c b/src/view/ovBox.c
index 5d8355e..bca2925 100644
--- a/src/view/ovBox.c
+++ b/src/view/ovBox.c
@@ -729,7 +729,7 @@ ViewOvBoxClassInit(ViewOvBoxClass *klass) // IN
 
    parentClass = g_type_class_peek_parent(klass);
 
-   g_type_class_add_private(objectClass, sizeof(ViewOvBoxPrivate));
+   g_type_class_add_private(klass, sizeof(ViewOvBoxPrivate));
 }
 
 
diff --git a/src/virt-viewer-display-spice.c b/src/virt-viewer-display-spice.c
index c73692d..06acc08 100644
--- a/src/virt-viewer-display-spice.c
+++ b/src/virt-viewer-display-spice.c
@@ -66,7 +66,7 @@ virt_viewer_display_spice_class_init(VirtViewerDisplaySpiceClass *klass)
 	dclass->send_keys = virt_viewer_display_spice_send_keys;
 	dclass->get_pixbuf = virt_viewer_display_spice_get_pixbuf;
 
-	g_type_class_add_private(oclass, sizeof(VirtViewerDisplaySpicePrivate));
+	g_type_class_add_private(klass, sizeof(VirtViewerDisplaySpicePrivate));
 }
 
 static void
diff --git a/src/virt-viewer-display-vnc.c b/src/virt-viewer-display-vnc.c
index 5dd9744..3228348 100644
--- a/src/virt-viewer-display-vnc.c
+++ b/src/virt-viewer-display-vnc.c
@@ -60,7 +60,7 @@ virt_viewer_display_vnc_class_init(VirtViewerDisplayVncClass *klass)
 	dclass->send_keys = virt_viewer_display_vnc_send_keys;
 	dclass->get_pixbuf = virt_viewer_display_vnc_get_pixbuf;
 
-	g_type_class_add_private(oclass, sizeof(VirtViewerDisplayVncPrivate));
+	g_type_class_add_private(klass, sizeof(VirtViewerDisplayVncPrivate));
 }
 
 static void
diff --git a/src/virt-viewer-display.c b/src/virt-viewer-display.c
index fe25a8e..e145682 100644
--- a/src/virt-viewer-display.c
+++ b/src/virt-viewer-display.c
@@ -203,7 +203,7 @@ virt_viewer_display_class_init(VirtViewerDisplayClass *class)
 		     G_TYPE_NONE,
 		     0);
 
-	g_type_class_add_private(object_class, sizeof(VirtViewerDisplayPrivate));
+	g_type_class_add_private(class, sizeof(VirtViewerDisplayPrivate));
 }
 
 static void
diff --git a/src/virt-viewer-session-spice.c b/src/virt-viewer-session-spice.c
index 4167c0d..34ba44c 100644
--- a/src/virt-viewer-session-spice.c
+++ b/src/virt-viewer-session-spice.c
@@ -82,7 +82,7 @@ virt_viewer_session_spice_class_init(VirtViewerSessionSpiceClass *klass)
 	dclass->open_host = virt_viewer_session_spice_open_host;
 	dclass->channel_open_fd = virt_viewer_session_spice_channel_open_fd;
 
-	g_type_class_add_private(oclass, sizeof(VirtViewerSessionSpicePrivate));
+	g_type_class_add_private(klass, sizeof(VirtViewerSessionSpicePrivate));
 }
 
 static void
diff --git a/src/virt-viewer-session-vnc.c b/src/virt-viewer-session-vnc.c
index ad3002a..cdf1be8 100644
--- a/src/virt-viewer-session-vnc.c
+++ b/src/virt-viewer-session-vnc.c
@@ -71,7 +71,7 @@ virt_viewer_session_vnc_class_init(VirtViewerSessionVncClass *klass)
 	dclass->open_host = virt_viewer_session_vnc_open_host;
 	dclass->channel_open_fd = virt_viewer_session_vnc_channel_open_fd;
 
-	g_type_class_add_private(oclass, sizeof(VirtViewerSessionVncPrivate));
+	g_type_class_add_private(klass, sizeof(VirtViewerSessionVncPrivate));
 }
 
 static void
diff --git a/src/virt-viewer-session.c b/src/virt-viewer-session.c
index e234042..dbdcecc 100644
--- a/src/virt-viewer-session.c
+++ b/src/virt-viewer-session.c
@@ -173,7 +173,7 @@ virt_viewer_session_class_init(VirtViewerSessionClass *class)
                      G_TYPE_NONE,
                      0);
 
-	g_type_class_add_private(object_class, sizeof(VirtViewerSessionPrivate));
+	g_type_class_add_private(class, sizeof(VirtViewerSessionPrivate));
 }
 
 static void
-- 
1.7.7.5




More information about the virt-tools-list mailing list