[gimp/wip/animation: 361/373] plug-ins: prevent unwanted signals upon destroying storyboard widgets.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/animation: 361/373] plug-ins: prevent unwanted signals upon destroying storyboard widgets.
- Date: Sat, 7 Oct 2017 02:25:04 +0000 (UTC)
commit e729f26c7037d4fd2213e6b5d6bcf9f674080c22
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]