View | Details | Raw Unified | Return to bug 113835
Collapse All | Expand All

(-)ChangeLog (+5 lines)
Lines 1-3 Link Here
1
2005-08-29  Rodrigo Moya <rodrigo@novell.com>
2
3
	* gnome-mouse-properties.c (delay_value_changed_cb): guard against
4
	invalid values from the GtkHScale widget.
5
1
2005-08-24  Kjartan Maraas  <kmaraas@gnome.org>
6
2005-08-24  Kjartan Maraas  <kmaraas@gnome.org>
2
7
3
	* gnome-mouse-properties.c: (cursor_changed): Move the call to
8
	* gnome-mouse-properties.c: (cursor_changed): Move the call to
(-)gnome-mouse-properties.c (-1 / +8 lines)
Lines 128-134 static gboolean Link Here
128
delay_value_changed_cb (GtkWidget *range, GtkScrollType scroll, gdouble value,
128
delay_value_changed_cb (GtkWidget *range, GtkScrollType scroll, gdouble value,
129
			gpointer   dialog)
129
			gpointer   dialog)
130
{
130
{
131
	gchar *message = g_strdup_printf ("%.1f %s", value / 1000.0, _("seconds"));
131
	gchar *message;
132
133
	if (value < 100)
134
		value = 100;
135
	else if (value > 1000)
136
		value = 1000;
137
138
	message = g_strdup_printf ("%.1f %s", value / 1000.0, _("seconds"));
132
	gtk_label_set_label ((GtkLabel*) WID ("delay_label"), message);
139
	gtk_label_set_label ((GtkLabel*) WID ("delay_label"), message);
133
	g_free (message);
140
	g_free (message);
134
141

Return to bug 113835