diff options
author | Guannan Ren <gren@redhat.com> | 2012-01-31 14:31:45 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2012-01-31 14:34:47 +0000 |
commit | c61981540d607a21429f08ede942e318ac16df87 (patch) | |
tree | 8c47f58c967f522d9705460e192ebf389754bce2 | |
parent | 5bc4c0b342f0ebe330f0db61a0a40cf009d2b1ba (diff) |
Tune the first argument in calls to g_type_class_add_private()
-rw-r--r-- | src/view/autoDrawer.c | 2 | ||||
-rw-r--r-- | src/view/drawer.c | 2 | ||||
-rw-r--r-- | src/view/ovBox.c | 4 | ||||
-rw-r--r-- | src/virt-viewer-display-spice.c | 2 | ||||
-rw-r--r-- | src/virt-viewer-display-vnc.c | 2 | ||||
-rw-r--r-- | src/virt-viewer-display.c | 2 | ||||
-rw-r--r-- | src/virt-viewer-session-spice.c | 2 | ||||
-rw-r--r-- | src/virt-viewer-session-vnc.c | 2 | ||||
-rw-r--r-- | src/virt-viewer-session.c | 2 |
9 files changed, 9 insertions, 11 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..1d6733f 100644 --- a/src/view/ovBox.c +++ b/src/view/ovBox.c @@ -706,10 +706,8 @@ ViewOvBoxSetOver(ViewOvBox *that, // IN static void ViewOvBoxClassInit(ViewOvBoxClass *klass) // IN { - GObjectClass *objectClass; GtkWidgetClass *widgetClass; - objectClass = G_OBJECT_CLASS(klass); widgetClass = GTK_WIDGET_CLASS(klass); widgetClass->map = ViewOvBoxMap; @@ -729,7 +727,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 41520ad..7c25ead 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 4558f68..8634f81 100644 --- a/src/virt-viewer-display.c +++ b/src/virt-viewer-display.c @@ -204,7 +204,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 e3b0dbc..f2eb826 100644 --- a/src/virt-viewer-session-spice.c +++ b/src/virt-viewer-session-spice.c @@ -119,7 +119,7 @@ virt_viewer_session_spice_class_init(VirtViewerSessionSpiceClass *klass) dclass->open_uri = virt_viewer_session_spice_open_uri; 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)); g_object_class_install_property(oclass, PROP_SPICE_SESSION, diff --git a/src/virt-viewer-session-vnc.c b/src/virt-viewer-session-vnc.c index eac712c..7f660ea 100644 --- a/src/virt-viewer-session-vnc.c +++ b/src/virt-viewer-session-vnc.c @@ -74,7 +74,7 @@ virt_viewer_session_vnc_class_init(VirtViewerSessionVncClass *klass) dclass->open_uri = virt_viewer_session_vnc_open_uri; 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 1017d98..cef9156 100644 --- a/src/virt-viewer-session.c +++ b/src/virt-viewer-session.c @@ -230,7 +230,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 |