[gimp/wip/animation: 185/197] plug-ins: prevent unwanted signals upon destroying storyboard widgets.



commit 3f1af1a294d666659a74ffb514f189865ae17a00
Author: Jehan <jehan girinstud io>
Date:   Mon Jul 31 23:19:41 2017 +0200

    plug-ins: prevent unwanted signals upon destroying storyboard widgets.
    
    For some reason, when a spin button had the focus, it was setting its
    value to 0 upon being destroyed. We definitely don't want that. Rather
    than blocking every spin button, I just make every child insensitive,
    which does the deal.

 .../animation-play/widgets/animation-storyboard.c  |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/animation-play/widgets/animation-storyboard.c 
b/plug-ins/animation-play/widgets/animation-storyboard.c
index 0e038fa..9f31eb5 100644
--- a/plug-ins/animation-play/widgets/animation-storyboard.c
+++ b/plug-ins/animation-play/widgets/animation-storyboard.c
@@ -315,6 +315,9 @@ animation_storyboard_load (Animation           *animation,
 
   /* Cleaning previous loads. */
   gtk_container_foreach (GTK_CONTAINER (layout),
+                         (GtkCallback) gtk_widget_set_sensitive,
+                         FALSE);
+  gtk_container_foreach (GTK_CONTAINER (layout),
                          (GtkCallback) gtk_widget_destroy,
                          NULL);
   if (view->priv->panel_buttons)


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