mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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>
|
||||
|
||||
* clutter/cogl/gles/cogl-gles2-wrapper.h:
|
||||
|
@ -768,6 +768,7 @@ clutter_score_start (ClutterScore *score)
|
||||
}
|
||||
else
|
||||
{
|
||||
g_signal_emit (score, score_signals[STARTED], 0);
|
||||
g_node_children_foreach (priv->root,
|
||||
G_TRAVERSE_ALL,
|
||||
start_children_entries,
|
||||
|
@ -5,6 +5,19 @@
|
||||
|
||||
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
|
||||
on_timeline_started (ClutterScore *score,
|
||||
ClutterTimeline *timeline)
|
||||
@ -75,6 +88,9 @@ test_score_main (int argc, char **argv)
|
||||
g_free);
|
||||
|
||||
score = clutter_score_new();
|
||||
g_signal_connect (score, "started",
|
||||
G_CALLBACK (on_score_started),
|
||||
NULL);
|
||||
g_signal_connect (score, "timeline-started",
|
||||
G_CALLBACK (on_timeline_started),
|
||||
NULL);
|
||||
@ -82,7 +98,7 @@ test_score_main (int argc, char **argv)
|
||||
G_CALLBACK (on_timeline_completed),
|
||||
NULL);
|
||||
g_signal_connect (score, "completed",
|
||||
G_CALLBACK (clutter_main_quit),
|
||||
G_CALLBACK (on_score_completed),
|
||||
NULL);
|
||||
|
||||
clutter_score_append (score, NULL, timeline_1);
|
||||
|
Loading…
Reference in New Issue
Block a user