[mutter/wip/quadbuffer-stereo: 4/4] Switch to using ClutterStage::after-paint



commit 0f214e24eeb7fc73b7816e9512e832e5566375a8
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Fri Jun 27 14:33:01 2014 -0400

    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.

 configure.ac                |    2 +-
 src/compositor/compositor.c |    6 ++----
 2 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6fe0c18..9c45779 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,7 +75,7 @@ MUTTER_PC_MODULES="
    cairo >= 1.10.0
    gsettings-desktop-schemas >= 3.7.3
    xcomposite >= 0.2 xfixes xrender xdamage xi >= 1.6.0
-   $CLUTTER_PACKAGE >= 1.15.90
+   $CLUTTER_PACKAGE >= 1.19.5
    cogl-1.0 >= 1.17.1
    upower-glib >= 0.99.0
    gnome-desktop-3.0
diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c
index 25b677e..db7e245 100644
--- a/src/compositor/compositor.c
+++ b/src/compositor/compositor.c
@@ -668,10 +668,8 @@ meta_compositor_manage_screen (MetaCompositor *compositor,
 
   info->stage = clutter_stage_new ();
 
-  clutter_stage_set_paint_callback (CLUTTER_STAGE (info->stage),
-                                    after_stage_paint,
-                                    info,
-                                    NULL);
+  g_signal_connect (CLUTTER_STAGE (info->stage), "after-paint",
+                    G_CALLBACK (after_stage_paint), info);
 
   clutter_stage_set_sync_delay (CLUTTER_STAGE (info->stage), META_SYNC_DELAY);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]