[clutter/wip/apocalypses/apocalypse-3: 13/35] conform/text-cache: Use the stage paint signal
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/wip/apocalypses/apocalypse-3: 13/35] conform/text-cache: Use the stage paint signal
- Date: Thu, 15 Mar 2012 17:55:58 +0000 (UTC)
commit 2a8e468d0bce37cd058211bf68d1b43ebf7388a0
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]