gdm r6102 - in trunk: . gui/simple-greeter
- From: halfline svn gnome org
- To: svn-commits-list gnome org
- Subject: gdm r6102 - in trunk: . gui/simple-greeter
- Date: Sat, 5 Apr 2008 06:11:50 +0100 (BST)
Author: halfline
Date: Sat Apr 5 06:11:50 2008
New Revision: 6102
URL: http://svn.gnome.org/viewvc/gdm?rev=6102&view=rev
Log:
2008-04-05 Ray Strode <rstrode redhat com>
* gui/simple-greeter/gdm-chooser-widget.c
(get_normalized_position_of_row_at_path):
ensure return value is between 0.0 and 1.0
Modified:
trunk/ChangeLog
trunk/gui/simple-greeter/gdm-chooser-widget.c
Modified: trunk/gui/simple-greeter/gdm-chooser-widget.c
==============================================================================
--- trunk/gui/simple-greeter/gdm-chooser-widget.c (original)
+++ trunk/gui/simple-greeter/gdm-chooser-widget.c Sat Apr 5 06:11:50 2008
@@ -504,7 +504,7 @@
area_of_visible_rows.y,
&area_of_visible_rows.x,
&area_of_visible_rows.y);
- return ((double) area_of_row_at_path.y) / widget->priv->items_view->allocation.height;
+ return CLAMP (((double) area_of_row_at_path.y) / widget->priv->items_view->allocation.height, 0.0, 1.0);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]