Tune the first argument in calls to g_type_class_add_private()

This commit is contained in:
Guannan Ren 2012-01-31 14:31:45 +00:00 committed by Daniel P. Berrange
parent 5bc4c0b342
commit c61981540d
9 changed files with 9 additions and 11 deletions

View File

@ -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));
}

View File

@ -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));
}

View File

@ -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));
}

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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,

View File

@ -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

View File

@ -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