projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the code to setup an instance of the keyframe list handler.
[synfig.git]
/
synfig-studio
/
trunk
/
src
/
gtkmm
/
widget_keyframe_list.cpp
diff --git
a/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp
b/synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp
index
d3269de
..
e0669c4
100644
(file)
--- a/
synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp
+++ b/
synfig-studio/trunk/src/gtkmm/widget_keyframe_list.cpp
@@
-218,7
+218,7
@@
Widget_Keyframe_List::on_event(GdkEvent *event)
t = floor(t*fps + 0.5)/fps;
}
bool stat=perform_move_kf();
t = floor(t*fps + 0.5)/fps;
}
bool stat=perform_move_kf();
- synfig::info("Dropping keyframe at: %s", t.get_string());
+ synfig::info("Dropping keyframe at: %s", t.get_string()
.c_str()
);
return stat;
}
default:
return stat;
}
default:
@@
-245,3
+245,14
@@
void Widget_Keyframe_List::set_time_adjustment(Gtk::Adjustment *x)
time_other_change = x->signal_changed().connect(sigc::mem_fun(*this,&Widget_Keyframe_List::queue_draw));
}
}
time_other_change = x->signal_changed().connect(sigc::mem_fun(*this,&Widget_Keyframe_List::queue_draw));
}
}
+
+void
+Widget_Keyframe_List::set_fps(float d)
+{
+ if(fps != d)
+ {
+ fps = d;
+ //update everything since we need to redraw already
+ queue_draw();
+ }
+}