Switch to using ClutterStage::after-paint

The experimental API clutter_stage_set_paint_callback() is replaced
with an ::after-paint signal as of Clutter 1.19.5.
This commit is contained in:
Owen W. Taylor 2014-06-27 14:33:01 -04:00
parent 0a47d135ac
commit bc510378b3
2 changed files with 3 additions and 5 deletions

View File

@ -78,7 +78,7 @@ MUTTER_PC_MODULES="
gsettings-desktop-schemas >= 3.7.3 gsettings-desktop-schemas >= 3.7.3
xcomposite >= 0.2 xfixes xext xdamage xi >= 1.6.0 xcomposite >= 0.2 xfixes xext xdamage xi >= 1.6.0
xcursor xcursor
$CLUTTER_PACKAGE >= 1.17.5 $CLUTTER_PACKAGE >= 1.19.5
clutter-wayland-1.0 clutter-wayland-1.0
clutter-wayland-compositor-1.0 clutter-wayland-compositor-1.0
clutter-egl-1.0 clutter-egl-1.0

View File

@ -528,10 +528,8 @@ meta_compositor_manage (MetaCompositor *compositor)
} }
} }
clutter_stage_set_paint_callback (CLUTTER_STAGE (compositor->stage), g_signal_connect (CLUTTER_STAGE (compositor->stage), "after-paint",
after_stage_paint, G_CALLBACK (after_stage_paint), compositor);
compositor,
NULL);
clutter_stage_set_sync_delay (CLUTTER_STAGE (compositor->stage), META_SYNC_DELAY); clutter_stage_set_sync_delay (CLUTTER_STAGE (compositor->stage), META_SYNC_DELAY);