mousetweaks r200 - in trunk: . man src



Author: gerdk
Date: Sun Jul  6 11:05:08 2008
New Revision: 200
URL: http://svn.gnome.org/viewvc/mousetweaks?rev=200&view=rev

Log:
2008-07-06 Gerd Kohlberger <gerdk svn gnome org>

	* src/mt-main.c:
	* src/mt-timer.c:
	* man/mousetweaks.1:

	Change the dwell delay range from 0.5-3.0 sec to 0.2-3.0 sec.



Modified:
   trunk/ChangeLog
   trunk/man/mousetweaks.1
   trunk/src/mt-main.c
   trunk/src/mt-timer.c

Modified: trunk/man/mousetweaks.1
==============================================================================
--- trunk/man/mousetweaks.1	(original)
+++ trunk/man/mousetweaks.1	Sun Jul  6 11:05:08 2008
@@ -30,7 +30,7 @@
 .TP
 .B \-\-dwell\-time=FLOAT
 Time to keep the pointer motionless before a dwell click is performed.
-Range: 0.5 - 3.0 seconds.
+Range: 0.2 - 3.0 seconds.
 .TP
 .B \-\-secondary\-time=FLOAT
 Time to hold the primary mouse button before a simulated secondary

Modified: trunk/src/mt-main.c
==============================================================================
--- trunk/src/mt-main.c	(original)
+++ trunk/src/mt-main.c	Sun Jul  6 11:05:08 2008
@@ -624,7 +624,7 @@
 	{"enable-secondary", 0, 0, G_OPTION_ARG_NONE, &delay_click,
 	    _("Enable simulated secondary click"), 0},
 	{"dwell-time", 0, 0, G_OPTION_ARG_DOUBLE, &dwell_time,
-	    _("Time to wait before a dwell click"), "[0.5-3.0]"},
+	    _("Time to wait before a dwell click"), "[0.2-3.0]"},
 	{"secondary-time", 0, 0, G_OPTION_ARG_DOUBLE, &delay_time,
 	    _("Time to wait before a simulated secondary click"), "[0.5-3.0]"},
 	{"dwell-mode", 'm', 0, G_OPTION_ARG_STRING, &mode,
@@ -723,7 +723,7 @@
 	    gconf_client_set_bool (mt->client, OPT_DELAY, TRUE, NULL);
 	if (delay_time >= .5 && delay_time <= 3.)
 	    gconf_client_set_float (mt->client, OPT_DELAY_T, delay_time, NULL);
-	if (dwell_time >= .5 && dwell_time <= 3.)
+	if (dwell_time >= .2 && dwell_time <= 3.)
 	    gconf_client_set_float (mt->client, OPT_DWELL_T, dwell_time, NULL);
 	if (threshold >= 0 && threshold <= 30)
 	    gconf_client_set_int (mt->client, OPT_THRESHOLD, threshold, NULL);

Modified: trunk/src/mt-timer.c
==============================================================================
--- trunk/src/mt-timer.c	(original)
+++ trunk/src/mt-timer.c	Sun Jul  6 11:05:08 2008
@@ -208,7 +208,7 @@
 mt_timer_set_target (MtTimer *timer, gdouble time)
 {
     g_return_if_fail (MT_IS_TIMER (timer));
-    g_return_if_fail (time >= 0.5);
+    g_return_if_fail (time >= 0.0);
 
     MT_TIMER_GET_PRIVATE (timer)->target = time;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]