[gimp/wip/animation: 273/373] plug-ins: broken X-sheet when adding new frames to cel animation.
- From: Jehan Pagès <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/animation: 273/373] plug-ins: broken X-sheet when adding new frames to cel animation.
- Date: Sat, 7 Oct 2017 02:17:40 +0000 (UTC)
commit 5c84efeed606ec111d3a18d11e8ebbb2d13d138d
Author: Jehan <jehan girinstud io>
Date: Mon Nov 14 01:55:48 2016 +0100
plug-ins: broken X-sheet when adding new frames to cel animation.
plug-ins/animation-play/widgets/animation-xsheet.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/animation-play/widgets/animation-xsheet.c
b/plug-ins/animation-play/widgets/animation-xsheet.c
index 45d474d..babd1c4 100755
--- a/plug-ins/animation-play/widgets/animation-xsheet.c
+++ b/plug-ins/animation-play/widgets/animation-xsheet.c
@@ -663,7 +663,7 @@ animation_xsheet_update_layout (AnimationXSheet *xsheet)
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
gtk_table_attach (GTK_TABLE (xsheet->priv->track_layout),
- frame, j + 1, j + 2, i + 1, i + 2,
+ frame, j * 9 + 1, j * 9 + 10, i + 2, i + 3,
GTK_FILL, GTK_FILL, 0, 0);
cel = gtk_toggle_button_new ();
@@ -701,7 +701,7 @@ animation_xsheet_update_layout (AnimationXSheet *xsheet)
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_ETCHED_OUT);
gtk_table_attach (GTK_TABLE (xsheet->priv->track_layout),
- frame, 0, 1, i + 1, i + 2,
+ frame, 0, 1, i + 2, i + 3,
GTK_FILL, GTK_FILL, 0, 0);
num_str = g_strdup_printf ("%d", i + 1);
@@ -741,7 +741,7 @@ animation_xsheet_update_layout (AnimationXSheet *xsheet)
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_IN);
gtk_table_attach (GTK_TABLE (xsheet->priv->track_layout),
- frame, n_tracks + 1, n_tracks + 6, i + 1, i + 2,
+ frame, n_tracks * 9 + 1, n_tracks * 9 + 6, i + 2, i + 3,
GTK_FILL, GTK_FILL, 0, 0);
comment_field = gtk_text_view_new ();
xsheet->priv->comment_fields = g_list_append (xsheet->priv->comment_fields,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]