]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[animation] Use default event loop
authorRay Strode <rstrode@redhat.com>
Wed, 23 Sep 2009 21:38:05 +0000 (17:38 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 28 Sep 2009 21:55:34 +0000 (17:55 -0400)
src/libplybootsplash/ply-animation.c
src/libplybootsplash/ply-animation.h
src/plugins/splash/two-step/plugin.c

index 9bd2b14789714e941b00066641876e6e46806910..170b44ca853782d6fa6f01c401b4c3ebcf6cfdb5 100644 (file)
@@ -294,16 +294,14 @@ ply_animation_load (ply_animation_t *animation)
 
 bool
 ply_animation_start (ply_animation_t    *animation,
-                     ply_event_loop_t   *loop,
                      ply_pixel_display_t *display,
                      ply_trigger_t      *stop_trigger,
                      long                x,
                      long                y)
 {
   assert (animation != NULL);
-  assert (animation->loop == NULL);
 
-  animation->loop = loop;
+  animation->loop = ply_event_loop_get_default ();
   animation->display = display;
   animation->stop_trigger = stop_trigger;
   animation->is_stopped = false;
index 7a0bdf33f797b09b530fcfa41546b7b818e177c0..7b905472f61898051e4eab5a4dd8e56c61a7be32 100644 (file)
@@ -39,7 +39,6 @@ void ply_animation_free (ply_animation_t *animation);
 
 bool ply_animation_load (ply_animation_t *animation);
 bool ply_animation_start (ply_animation_t    *animation,
-                          ply_event_loop_t   *loop,
                           ply_pixel_display_t *display,
                           ply_trigger_t      *stop_trigger,
                           long                x,
index d52a8e4beac1b33b2d35058c93708ee81082e9d4..435031e2d82aaadeae34b4636f235a72cca7c3f1 100644 (file)
@@ -290,7 +290,6 @@ view_start_end_animation (view_t         *view,
   y = plugin->animation_vertical_alignment * screen_height - height / 2.0;
 
   ply_animation_start (view->end_animation,
-                       plugin->loop,
                        view->display,
                        trigger, x, y);
 }