mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2024-12-22 13:33:58 +03:00
Tune the first argument in calls to g_type_class_add_private()
This commit is contained in:
parent
5bc4c0b342
commit
c61981540d
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user