X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fwidget_time.cpp;h=e818c6555cdc2555cee62e91a6b1f9b1f3c0b4c1;hb=b6c331ec41a1788c39606b9c398a25f801bacb4a;hp=ded69b810dfaee3b6d332455dfd52555caff4610;hpb=02252941b29de64037116f4d37991a38d9ff0d94;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/widget_time.cpp b/synfig-studio/trunk/src/gtkmm/widget_time.cpp index ded69b8..e818c65 100644 --- a/synfig-studio/trunk/src/gtkmm/widget_time.cpp +++ b/synfig-studio/trunk/src/gtkmm/widget_time.cpp @@ -2,19 +2,20 @@ /*! \file widget_time.cpp ** \brief Template File ** -** $Id: widget_time.cpp,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $ +** $Id$ ** ** \legal -** Copyright (c) 2002 Robert B. Quattlebaum Jr. +** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley ** -** This software and associated documentation -** are CONFIDENTIAL and PROPRIETARY property of -** the above-mentioned copyright holder. +** This package is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License as +** published by the Free Software Foundation; either version 2 of +** the License, or (at your option) any later version. ** -** You may not copy, print, publish, or in any -** other way distribute this software without -** a prior written agreement with -** the copyright holder. +** This package is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +** General Public License for more details. ** \endlegal */ /* ========================================================================= */ @@ -33,6 +34,8 @@ #include "widget_time.h" #include "app.h" +#include "general.h" + #endif /* === U S I N G =========================================================== */ @@ -44,10 +47,6 @@ using namespace studio; /* === M A C R O S ========================================================= */ -#if ! defined(_) -#define _(x) (x) -#endif - /* === G L O B A L S ======================================================= */ /* === P R O C E D U R E S ================================================= */ @@ -102,7 +101,7 @@ Widget_Time::refresh_value() if(abs(newtime-time_)>=0.001) { time_=newtime; - refresh_text(); + refresh_text(); signal_value_changed()(); } } @@ -116,7 +115,7 @@ bool Widget_Time::on_event(GdkEvent* event) { const Time scroll_amount(0.25); - + switch(event->type) { case GDK_SCROLL: @@ -137,7 +136,7 @@ Widget_Time::on_event(GdkEvent* event) default: break; } - + return Gtk::Entry::on_event(event); } @@ -145,7 +144,7 @@ bool Widget_Time::on_focus_out_event(GdkEventFocus* event) { refresh_value(); - refresh_text(); + refresh_text(); return Gtk::Entry::on_focus_out_event(event); }