X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fwidget_time.cpp;h=04b898bb30afba1f9a5958d7b0befdd410bf473a;hb=f9d8a24a671b759c2be95bc10cd330f310b7dcc2;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..04b898b 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 */ /* ========================================================================= */ @@ -102,7 +103,7 @@ Widget_Time::refresh_value() if(abs(newtime-time_)>=0.001) { time_=newtime; - refresh_text(); + refresh_text(); signal_value_changed()(); } } @@ -116,7 +117,7 @@ bool Widget_Time::on_event(GdkEvent* event) { const Time scroll_amount(0.25); - + switch(event->type) { case GDK_SCROLL: @@ -137,7 +138,7 @@ Widget_Time::on_event(GdkEvent* event) default: break; } - + return Gtk::Entry::on_event(event); } @@ -145,7 +146,7 @@ bool Widget_Time::on_focus_out_event(GdkEventFocus* event) { refresh_value(); - refresh_text(); + refresh_text(); return Gtk::Entry::on_focus_out_event(event); }