[gimp/wip/animation: 184/197] plug-ins: simplify the keyframe view code a bit.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/animation: 184/197] plug-ins: simplify the keyframe view code a bit.
- Date: Sat, 7 Oct 2017 03:13:54 +0000 (UTC)
commit 36d14167e0a62920daba9fd1a6c9456d116283ba
Author: Jehan <jehan girinstud io>
Date: Mon Jul 31 22:10:18 2017 +0200
plug-ins: simplify the keyframe view code a bit.
Getting rid of a now useless function.
.../widgets/animation-keyframe-view.c | 22 ++++++++-----------
.../widgets/animation-keyframe-view.h | 1 -
2 files changed, 9 insertions(+), 14 deletions(-)
---
diff --git a/plug-ins/animation-play/widgets/animation-keyframe-view.c
b/plug-ins/animation-play/widgets/animation-keyframe-view.c
index 324a34e..ea7eff6 100644
--- a/plug-ins/animation-play/widgets/animation-keyframe-view.c
+++ b/plug-ins/animation-play/widgets/animation-keyframe-view.c
@@ -190,23 +190,19 @@ animation_keyframe_view_show (AnimationKeyFrameView *view,
}
}
-void
-animation_keyframe_view_hide (AnimationKeyFrameView *view)
-{
- g_signal_handlers_disconnect_by_func (view->priv->offset_entry,
- G_CALLBACK (on_offset_entry_changed),
- view);
- if (view->priv->camera)
- g_signal_handlers_disconnect_by_func (view->priv->camera,
- G_CALLBACK (on_offsets_changed),
- view);
-}
-
/************ Private Functions ****************/
static void animation_keyframe_view_dispose (GObject *object)
{
- animation_keyframe_view_hide (ANIMATION_KEYFRAME_VIEW (object));
+ AnimationKeyFrameView *view = ANIMATION_KEYFRAME_VIEW (object);
+
+ if (view->priv->camera)
+ {
+ g_signal_handlers_disconnect_by_func (view->priv->camera,
+ G_CALLBACK (on_offsets_changed),
+ view);
+ view->priv->camera = NULL;
+ }
G_OBJECT_CLASS (parent_class)->dispose (object);
}
diff --git a/plug-ins/animation-play/widgets/animation-keyframe-view.h
b/plug-ins/animation-play/widgets/animation-keyframe-view.h
index 64f7d12..48108ae 100644
--- a/plug-ins/animation-play/widgets/animation-keyframe-view.h
+++ b/plug-ins/animation-play/widgets/animation-keyframe-view.h
@@ -51,6 +51,5 @@ GtkWidget * animation_keyframe_view_new (void);
void animation_keyframe_view_show (AnimationKeyFrameView *view,
AnimationCelAnimation *animation,
gint position);
-void animation_keyframe_view_hide (AnimationKeyFrameView *view);
#endif /* __ANIMATION_KEYFRAME_VIEW_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]