[clutter/wip/apocalypses/apocalypse-3: 13/35] conform/text-cache: Use the stage paint signal



commit 65792fcd8ac34f36304b24cdaf388e2e84ce55a7
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Mon Mar 5 19:01:30 2012 +0000

    conform/text-cache: Use the stage paint signal
    
    The stage's paint signal is guaranteed to be emitted; ClutterText's
    paint signal is not.

 tests/conform/text-cache.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/conform/text-cache.c b/tests/conform/text-cache.c
index 82884df..6b4bddf 100644
--- a/tests/conform/text-cache.c
+++ b/tests/conform/text-cache.c
@@ -28,7 +28,7 @@ struct _CallbackData
 };
 
 static void
-on_paint (ClutterActor *label, CallbackData *data)
+on_paint (ClutterActor *stage, CallbackData *data)
 {
   PangoLayout *new_layout;
 
@@ -269,7 +269,7 @@ text_cache (void)
 
   data.test_layout = make_layout_like_label (CLUTTER_TEXT (data.label));
 
-  g_signal_connect (data.label, "paint", G_CALLBACK (on_paint), &data);
+  g_signal_connect (data.stage, "paint", G_CALLBACK (on_paint), &data);
 
   clutter_container_add (CLUTTER_CONTAINER (data.stage), data.label, NULL);
 



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