Author: megabajt                     Date: Wed Sep 17 09:07:01 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix for locales not using "." as decimal seperator (from upstream)

---- Files affected:
SOURCES:
   gsynaptics-dot-fixes.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/gsynaptics-dot-fixes.patch
diff -u /dev/null SOURCES/gsynaptics-dot-fixes.patch:1.1
--- /dev/null   Wed Sep 17 11:07:01 2008
+++ SOURCES/gsynaptics-dot-fixes.patch  Wed Sep 17 11:06:55 2008
@@ -0,0 +1,64 @@
+diff -urNad gsynaptics-0.9.14~/src/gsynaptics.c 
gsynaptics-0.9.14/src/gsynaptics.c
+--- gsynaptics-0.9.14~/src/gsynaptics.c        2008-02-28 23:21:17.000000000 
+0100
++++ gsynaptics-0.9.14/src/gsynaptics.c 2008-05-17 08:36:54.000000000 +0200
+@@ -713,8 +713,9 @@
+       if (priv->synclient)
+       {
+               gchar *command;
+-              command = g_strdup_printf ("synclient AccelFactor=%f",
+-                                         (gdouble)value / 1000);
++              char strval[G_ASCII_DTOSTR_BUF_SIZE];
++              g_ascii_dtostr(strval, sizeof(strval), (gdouble)value / 1000);
++              command = g_strdup_printf ("synclient AccelFactor=%s", strval);
+               g_spawn_command_line_async (command, NULL);
+               g_free (command);
+       }
+@@ -734,8 +735,9 @@
+       if (priv->synclient)
+       {
+               gchar *command;
+-              command = g_strdup_printf ("synclient MaxSpeed=%f",
+-                                         (gdouble)value / 1000);
++              char strval[G_ASCII_DTOSTR_BUF_SIZE];
++              g_ascii_dtostr(strval, sizeof(strval), (gdouble)value / 1000);
++              command = g_strdup_printf ("synclient MaxSpeed=%s", strval);
+               g_spawn_command_line_async (command, NULL);
+               g_free (command);
+       }
+@@ -755,8 +757,9 @@
+       if (priv->synclient)
+       {
+               gchar *command;
+-              command = g_strdup_printf ("synclient MinSpeed=%f",
+-                                         (gdouble)value / 1000);
++              char strval[G_ASCII_DTOSTR_BUF_SIZE];
++              g_ascii_dtostr(strval, sizeof(strval), (gdouble)value / 1000);
++              command = g_strdup_printf ("synclient MinSpeed=%s", strval);
+               g_spawn_command_line_async (command, NULL);
+               g_free (command);
+       }
+@@ -822,8 +825,10 @@
+       if (priv->synclient)
+       {
+               gchar *command;
+-              command = g_strdup_printf ("synclient 
CoastingSpeedThreshold=%f",
+-                                         thresh);
++              char strval[G_ASCII_DTOSTR_BUF_SIZE];
++              g_ascii_dtostr(strval, sizeof(strval), thresh);
++              command = g_strdup_printf ("synclient CoastingSpeed=%s",
++                                         strval);
+               g_spawn_command_line_async (command, NULL);
+               g_free (command);
+       }
+@@ -843,8 +848,9 @@
+       if (priv->synclient)
+       {
+               gchar *command;
+-              command = g_strdup_printf ("synclient CircScrollDelta=%f",
+-                                         (gdouble)delta / 1000);
++              char strval[G_ASCII_DTOSTR_BUF_SIZE];
++              g_ascii_dtostr(strval, sizeof(strval), (gdouble)delta / 1000);
++              command = g_strdup_printf ("synclient CircScrollDelta=%s", 
strval);
+               g_spawn_command_line_async (command, NULL);
+               g_free (command);
+       }
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to