[Synfig-devl] Carlos Lopez : Do not perform action when ALT-draging first keyframe
Module: synfig Branch: zelgadis_master Commit: 12876a2268b54c0cc2f381b5066a3bbc8ca623e8 URL: http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=12876a2268b54c0cc2f381b5066a3bbc8ca623e8 Author: Carlos Lopez car...@pcnuevo.(none) Date: Sat Jul 25 11:18:48 2009 +0200 Do not perform action when ALT-draging first keyframe --- .../trunk/src/gtkmm/widget_keyframe_list.cpp |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp b/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp index 4c83d14..ace2b98 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp @@ -193,8 +193,12 @@ Widget_Keyframe_List::perform_move_kf(bool delta=false) kf_list_-find_prev_next(selected_kf_time, prev, next); // Not possible to set delta to the first keyframe // perform normal movement - if (prev==Time::begin()) delta = false; - + // As suggested by Zelgadis it is better to not perform anything. + if (prev==Time::begin() delta==true) + { + synfig::info(_(Not possible to ALT-drag the first keyframe)); + return false; + } if(!delta) { synfigapp::Action::Handle action(synfigapp::Action::create(KeyframeSet)); -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl
[Synfig-devl] Carlos Lopez : Do not perform action when ALT-draging first keyframe
Module: synfig Branch: genete_master Commit: 12876a2268b54c0cc2f381b5066a3bbc8ca623e8 URL: http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=12876a2268b54c0cc2f381b5066a3bbc8ca623e8 Author: Carlos Lopez car...@pcnuevo.(none) Date: Sat Jul 25 11:18:48 2009 +0200 Do not perform action when ALT-draging first keyframe --- .../trunk/src/gtkmm/widget_keyframe_list.cpp |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp b/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp index 4c83d14..ace2b98 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp @@ -193,8 +193,12 @@ Widget_Keyframe_List::perform_move_kf(bool delta=false) kf_list_-find_prev_next(selected_kf_time, prev, next); // Not possible to set delta to the first keyframe // perform normal movement - if (prev==Time::begin()) delta = false; - + // As suggested by Zelgadis it is better to not perform anything. + if (prev==Time::begin() delta==true) + { + synfig::info(_(Not possible to ALT-drag the first keyframe)); + return false; + } if(!delta) { synfigapp::Action::Handle action(synfigapp::Action::create(KeyframeSet)); -- ___ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl
[Synfig-devl] Carlos Lopez : Do not perform action when ALT-draging first keyframe
Module: synfig Branch: morevna Commit: 12876a2268b54c0cc2f381b5066a3bbc8ca623e8 URL: http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=12876a2268b54c0cc2f381b5066a3bbc8ca623e8 Author: Carlos Lopez car...@pcnuevo.(none) Date: Sat Jul 25 11:18:48 2009 +0200 Do not perform action when ALT-draging first keyframe --- .../trunk/src/gtkmm/widget_keyframe_list.cpp |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp b/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp index 4c83d14..ace2b98 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp @@ -193,8 +193,12 @@ Widget_Keyframe_List::perform_move_kf(bool delta=false) kf_list_-find_prev_next(selected_kf_time, prev, next); // Not possible to set delta to the first keyframe // perform normal movement - if (prev==Time::begin()) delta = false; - + // As suggested by Zelgadis it is better to not perform anything. + if (prev==Time::begin() delta==true) + { + synfig::info(_(Not possible to ALT-drag the first keyframe)); + return false; + } if(!delta) { synfigapp::Action::Handle action(synfigapp::Action::create(KeyframeSet)); -- ___ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl
[Synfig-devl] Carlos Lopez : Do not perform action when ALT-draging first keyframe
Module: synfig Branch: genete_keyframe_list Commit: 12876a2268b54c0cc2f381b5066a3bbc8ca623e8 URL: http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig;a=commit;h=12876a2268b54c0cc2f381b5066a3bbc8ca623e8 Author: Carlos Lopez car...@pcnuevo.(none) Date: Sat Jul 25 11:18:48 2009 +0200 Do not perform action when ALT-draging first keyframe --- .../trunk/src/gtkmm/widget_keyframe_list.cpp |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp b/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp index 4c83d14..ace2b98 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp @@ -193,8 +193,12 @@ Widget_Keyframe_List::perform_move_kf(bool delta=false) kf_list_-find_prev_next(selected_kf_time, prev, next); // Not possible to set delta to the first keyframe // perform normal movement - if (prev==Time::begin()) delta = false; - + // As suggested by Zelgadis it is better to not perform anything. + if (prev==Time::begin() delta==true) + { + synfig::info(_(Not possible to ALT-drag the first keyframe)); + return false; + } if(!delta) { synfigapp::Action::Handle action(synfigapp::Action::create(KeyframeSet)); -- ___ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl