x11-texture-pixmap: Move signal handler override

The signal handling override for the ::queue-damage-redraw should be
done in the class initialization function, not in the instance one.
This commit is contained in:
Emmanuele Bassi 2010-03-03 17:46:53 +00:00
parent 1b57800208
commit 169ce1508b

View File

@ -471,11 +471,6 @@ clutter_x11_texture_pixmap_init (ClutterX11TexturePixmap *self)
CLUTTER_X11_TYPE_TEXTURE_PIXMAP, CLUTTER_X11_TYPE_TEXTURE_PIXMAP,
ClutterX11TexturePixmapPrivate); ClutterX11TexturePixmapPrivate);
g_signal_override_class_handler (
"queue-damage-redraw",
CLUTTER_X11_TYPE_TEXTURE_PIXMAP,
G_CALLBACK (clutter_x11_texture_pixmap_real_queue_damage_redraw));
if (!check_extensions (self)) if (!check_extensions (self))
{ {
/* FIMXE: means display lacks needed extensions for at least auto. /* FIMXE: means display lacks needed extensions for at least auto.
@ -814,17 +809,21 @@ clutter_x11_texture_pixmap_class_init (ClutterX11TexturePixmapClass *klass)
* Since: 1.2 * Since: 1.2
*/ */
signals[QUEUE_DAMAGE_REDRAW] = signals[QUEUE_DAMAGE_REDRAW] =
g_signal_new ("queue-damage-redraw", g_signal_new (g_intern_static_string ("queue-damage-redraw"),
G_TYPE_FROM_CLASS (object_class), G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_FIRST, G_SIGNAL_RUN_FIRST,
0, 0,
NULL, NULL, NULL, NULL,
clutter_marshal_VOID__INT_INT_INT_INT, clutter_marshal_VOID__INT_INT_INT_INT,
G_TYPE_NONE, 4, G_TYPE_NONE, 4,
G_TYPE_INT, G_TYPE_INT,
G_TYPE_INT, G_TYPE_INT,
G_TYPE_INT, G_TYPE_INT,
G_TYPE_INT); G_TYPE_INT);
g_signal_override_class_handler ("queue-damage-redraw",
CLUTTER_X11_TYPE_TEXTURE_PIXMAP,
G_CALLBACK (clutter_x11_texture_pixmap_real_queue_damage_redraw));
default_backend = clutter_get_default_backend (); default_backend = clutter_get_default_backend ();