[gimp/wip/animation: 354/373] plug-ins: check for object existence before disconnecting handler.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/animation: 354/373] plug-ins: check for object existence before disconnecting handler.
- Date: Sat, 7 Oct 2017 02:24:28 +0000 (UTC)
commit 7f72d37be418a1495a5875d5076bf78939539c8c
Author: Jehan <jehan girinstud io>
Date: Mon Jul 17 12:20:03 2017 +0200
plug-ins: check for object existence before disconnecting handler.
.../widgets/animation-keyframe-view.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/animation-play/widgets/animation-keyframe-view.c
b/plug-ins/animation-play/widgets/animation-keyframe-view.c
index 48a0d7b..324a34e 100644
--- a/plug-ins/animation-play/widgets/animation-keyframe-view.c
+++ b/plug-ins/animation-play/widgets/animation-keyframe-view.c
@@ -196,9 +196,10 @@ animation_keyframe_view_hide (AnimationKeyFrameView *view)
g_signal_handlers_disconnect_by_func (view->priv->offset_entry,
G_CALLBACK (on_offset_entry_changed),
view);
- g_signal_handlers_disconnect_by_func (view->priv->camera,
- G_CALLBACK (on_offsets_changed),
- view);
+ if (view->priv->camera)
+ g_signal_handlers_disconnect_by_func (view->priv->camera,
+ G_CALLBACK (on_offsets_changed),
+ view);
}
/************ Private Functions ****************/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]