2008-11-14 Emmanuele Bassi <ebassi@linux.intel.com>
Bug 1265 - ClutterScore doesn't emit 'started' signal (Bastian Winkler) * clutter/clutter-score.c: Emit the ::started signal. * tests/interactive/test-score.c: Check the emission of the Score signals.
This commit is contained in:
parent
0ae150e462
commit
99b173eee7
10
ChangeLog
10
ChangeLog
@ -1,3 +1,13 @@
|
|||||||
|
2008-11-14 Emmanuele Bassi <ebassi@linux.intel.com>
|
||||||
|
|
||||||
|
Bug 1265 - ClutterScore doesn't emit 'started' signal (Bastian
|
||||||
|
Winkler)
|
||||||
|
|
||||||
|
* clutter/clutter-score.c: Emit the ::started signal.
|
||||||
|
|
||||||
|
* tests/interactive/test-score.c: Check the emission of the
|
||||||
|
Score signals.
|
||||||
|
|
||||||
2008-11-13 Neil Roberts <neil@linux.intel.com>
|
2008-11-13 Neil Roberts <neil@linux.intel.com>
|
||||||
|
|
||||||
* clutter/cogl/gles/cogl-gles2-wrapper.h:
|
* clutter/cogl/gles/cogl-gles2-wrapper.h:
|
||||||
|
@ -768,6 +768,7 @@ clutter_score_start (ClutterScore *score)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
g_signal_emit (score, score_signals[STARTED], 0);
|
||||||
g_node_children_foreach (priv->root,
|
g_node_children_foreach (priv->root,
|
||||||
G_TRAVERSE_ALL,
|
G_TRAVERSE_ALL,
|
||||||
start_children_entries,
|
start_children_entries,
|
||||||
|
@ -5,6 +5,19 @@
|
|||||||
|
|
||||||
static gint level = 1;
|
static gint level = 1;
|
||||||
|
|
||||||
|
static void
|
||||||
|
on_score_started (ClutterScore *score)
|
||||||
|
{
|
||||||
|
g_print ("Score started\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
on_score_completed (ClutterScore *score)
|
||||||
|
{
|
||||||
|
g_print ("Score completed\n");
|
||||||
|
clutter_main_quit ();
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
on_timeline_started (ClutterScore *score,
|
on_timeline_started (ClutterScore *score,
|
||||||
ClutterTimeline *timeline)
|
ClutterTimeline *timeline)
|
||||||
@ -75,6 +88,9 @@ test_score_main (int argc, char **argv)
|
|||||||
g_free);
|
g_free);
|
||||||
|
|
||||||
score = clutter_score_new();
|
score = clutter_score_new();
|
||||||
|
g_signal_connect (score, "started",
|
||||||
|
G_CALLBACK (on_score_started),
|
||||||
|
NULL);
|
||||||
g_signal_connect (score, "timeline-started",
|
g_signal_connect (score, "timeline-started",
|
||||||
G_CALLBACK (on_timeline_started),
|
G_CALLBACK (on_timeline_started),
|
||||||
NULL);
|
NULL);
|
||||||
@ -82,7 +98,7 @@ test_score_main (int argc, char **argv)
|
|||||||
G_CALLBACK (on_timeline_completed),
|
G_CALLBACK (on_timeline_completed),
|
||||||
NULL);
|
NULL);
|
||||||
g_signal_connect (score, "completed",
|
g_signal_connect (score, "completed",
|
||||||
G_CALLBACK (clutter_main_quit),
|
G_CALLBACK (on_score_completed),
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
clutter_score_append (score, NULL, timeline_1);
|
clutter_score_append (score, NULL, timeline_1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user