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,
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))
{
/* FIMXE: means display lacks needed extensions for at least auto.
@ -814,7 +809,7 @@ clutter_x11_texture_pixmap_class_init (ClutterX11TexturePixmapClass *klass)
* Since: 1.2
*/
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_SIGNAL_RUN_FIRST,
0,
@ -826,6 +821,10 @@ clutter_x11_texture_pixmap_class_init (ClutterX11TexturePixmapClass *klass)
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 ();
if (!CLUTTER_IS_BACKEND_X11 (default_backend))