diff options
author | Vasily_Makarov <danilka.pro@gmail.com> | 2012-02-08 12:52:44 +0400 |
---|---|---|
committer | Vasily_Makarov <danilka.pro@gmail.com> | 2012-02-08 12:52:44 +0400 |
commit | 101ee72f4441c1904ecf7ce8cb79eef5774a4ca3 (patch) | |
tree | cf0cbcb3d5b2ece3d69a68410deab07f0d6b8a9d /saedit | |
parent | 6440f8bc99e5b8c2bf86a853684278bcfd797d92 (diff) | |
download | evol-tools-101ee72f4441c1904ecf7ce8cb79eef5774a4ca3.tar.gz evol-tools-101ee72f4441c1904ecf7ce8cb79eef5774a4ca3.tar.bz2 evol-tools-101ee72f4441c1904ecf7ce8cb79eef5774a4ca3.tar.xz evol-tools-101ee72f4441c1904ecf7ce8cb79eef5774a4ca3.zip |
Add pause when step to frame
Diffstat (limited to 'saedit')
-rw-r--r-- | saedit/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/saedit/main.c b/saedit/main.c index ed3c244..b6ef4e9 100644 --- a/saedit/main.c +++ b/saedit/main.c @@ -218,6 +218,7 @@ void open_menu_item_activate_callback(GtkMenuItem *menuitem, GtkFileChooserDialo //>Toolbar callbacks void toolbar_to_first_clicked_callback(GtkToolButton *toolbutton, gpointer user_data) { + toolbar_pause_clicked_callback(toolbutton, user_data); gen_sae_info->animation = g_list_first(gen_sae_info->animation); Frame *sprite = gen_sae_info->animation->data; gen_sae_info->sprite = sprite; @@ -225,6 +226,7 @@ void toolbar_to_first_clicked_callback(GtkToolButton *toolbutton, gpointer user_ } void toolbar_prev_frame_clicked_callback(GtkToolButton *toolbutton, gpointer user_data) { + toolbar_pause_clicked_callback(toolbutton, user_data); GList *prev = g_list_previous(gen_sae_info->animation); if (prev == NULL) return; @@ -247,9 +249,11 @@ void toolbar_pause_clicked_callback(GtkToolButton *toolbutton, gpointer user_dat prev = g_list_last(gen_sae_info->animation); gen_sae_info->animation = prev; } + gen_sae_info->anim_tag = 0; } void toolbar_next_frame_clicked_callback(GtkToolButton *toolbutton, gpointer user_data) { + toolbar_pause_clicked_callback(toolbutton, user_data); GList *next = g_list_next(gen_sae_info->animation); if (next == NULL) return; @@ -260,6 +264,7 @@ void toolbar_next_frame_clicked_callback(GtkToolButton *toolbutton, gpointer use } void toolbar_to_last_clicked_callback(GtkToolButton *toolbutton, gpointer user_data) { + toolbar_pause_clicked_callback(toolbutton, user_data); gen_sae_info->animation = g_list_last(gen_sae_info->animation); Frame *sprite = gen_sae_info->animation->data; gen_sae_info->sprite = sprite; |