Don't expand time fields to their full format (eg. "1s" -> "0h 0m 1s 0f") when they...
[synfig.git] / synfig-studio / trunk / src / gtkmm / widget_time.cpp
index f842ab8..9458f19 100644 (file)
@@ -157,6 +157,9 @@ Widget_Time::on_focus_out_event(GdkEventFocus* event)
 bool
 Widget_Time::on_focus_in_event(GdkEventFocus* event)
 {
-       set_text(time_.get_string(fps_,App::get_time_format()|Time::FORMAT_FULL));
+       // if defined, show the full time format "0h 0m 5s 0f" when the time widget gets focus
+       if (getenv("SYNFIG_SHOW_FULL_TIME_ON_FOCUS"))
+               set_text(time_.get_string(fps_,App::get_time_format()|Time::FORMAT_FULL));
+
        return Gtk::Entry::on_focus_in_event(event);
 }