[Gpredict-svn] SF.net SVN: gpredict:[77] trunk/src/gtk-rot-knob.c
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
|
From: <cs...@us...> - 2008-08-28 18:00:43
|
Revision: 77
http://gpredict.svn.sourceforge.net/gpredict/?rev=77&view=rev
Author: csete
Date: 2008-08-28 18:00:53 +0000 (Thu, 28 Aug 2008)
Log Message:
-----------
Fixed bug that prevented the knob value to be set to min/max.
Modified Paths:
--------------
trunk/src/gtk-rot-knob.c
Modified: trunk/src/gtk-rot-knob.c
===================================================================
--- trunk/src/gtk-rot-knob.c 2008-08-27 21:16:11 UTC (rev 76)
+++ trunk/src/gtk-rot-knob.c 2008-08-28 18:00:53 UTC (rev 77)
@@ -303,7 +303,11 @@
gtk_rot_knob_set_value (GtkRotKnob *knob, gfloat val)
{
/* set the new value */
- if ((val >= knob->min) && (val <= knob->max))
+ if (val <= knob->min)
+ knob->value = knob->min;
+ else if (val >= knob->max)
+ knob->value = knob->max;
+ else
knob->value = val;
/* update the display */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|