[gimp/wip/animation: 259/373] plug-ins: fix a few bugs when changing animation types.



commit ef3743d8846ed4e858924b1fdda978523640b37a
Author: Jehan <jehan girinstud io>
Date:   Fri Nov 11 03:38:01 2016 +0100

    plug-ins: fix a few bugs when changing animation types.

 plug-ins/animation-play/widgets/animation-dialog.c |    1 -
 .../animation-play/widgets/animation-storyboard.c  |    3 +++
 2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/animation-play/widgets/animation-dialog.c 
b/plug-ins/animation-play/widgets/animation-dialog.c
index 3be948b..ffaf50e 100755
--- a/plug-ins/animation-play/widgets/animation-dialog.c
+++ b/plug-ins/animation-play/widgets/animation-dialog.c
@@ -1473,7 +1473,6 @@ animation_type_changed (GtkWidget       *combo,
   g_free ((gchar *) xml);
   animation_dialog_set_animation (ANIMATION_DIALOG (dialog),
                                   animation);
-  animation_load (animation);
 }
 
 static void
diff --git a/plug-ins/animation-play/widgets/animation-storyboard.c 
b/plug-ins/animation-play/widgets/animation-storyboard.c
index feaaa30..0f3098c 100644
--- a/plug-ins/animation-play/widgets/animation-storyboard.c
+++ b/plug-ins/animation-play/widgets/animation-storyboard.c
@@ -204,6 +204,9 @@ animation_storyboard_finalize (GObject *object)
 {
   AnimationStoryboard *view = ANIMATION_STORYBOARD (object);
 
+  g_signal_handlers_disconnect_by_func (view->priv->playback,
+                    (GCallback) animation_storyboard_rendered,
+                    view);
   g_object_unref (view->priv->animation);
   if (view->priv->panel_buttons)
     {


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