Author: nick Date: 2008-07-08 15:27:52 +0000 (Tue, 08 Jul 2008) New Revision: 27237
Modified: xfce4-settings/branches/multiple_pointers/daemon.c xfce4-settings/branches/multiple_pointers/main.c Log: * Fix some indentation and a comment. Modified: xfce4-settings/branches/multiple_pointers/daemon.c =================================================================== --- xfce4-settings/branches/multiple_pointers/daemon.c 2008-07-08 13:23:16 UTC (rev 27236) +++ xfce4-settings/branches/multiple_pointers/daemon.c 2008-07-08 15:27:52 UTC (rev 27237) @@ -119,8 +119,8 @@ mouse_daemon_gcd (gint num, gint denom) { - /* calc the greatest common divisor using euclidean's algorithm */ - return (denom != 0 ? mouse_daemon_gcd (denom, num % denom) : num); + /* calc the greatest common divisor using euclidean's algorithm */ + return (denom != 0 ? mouse_daemon_gcd (denom, num % denom) : num); } @@ -201,29 +201,29 @@ static gchar * mouse_daemon_device_xfconf_name (const gchar *name) { - GString *string; - const gchar *p; + GString *string; + const gchar *p; - /* NOTE: this function is also in the mouse dialog code - * and they have to be identical! */ + /* NOTE: this function exists in both the dialog and + * daemon code and they have to identical! */ - /* allocate a string */ - string = g_string_sized_new (strlen (name)); + /* allocate a string */ + string = g_string_sized_new (strlen (name)); - /* create a name with only valid chars */ - for (p = name; *p != '\0'; p++) - { - if ((*p >= 'A' && *p <= 'Z') - || (*p >= 'a' && *p <= 'z') - || (*p >= '0' && *p <= '9') - || *p == '_' || *p == '-') - g_string_append_c (string, *p); - else if (*p == ' ') - string = g_string_append_c (string, '_'); - } + /* create a name with only valid chars */ + for (p = name; *p != '\0'; p++) + { + if ((*p >= 'A' && *p <= 'Z') + || (*p >= 'a' && *p <= 'z') + || (*p >= '0' && *p <= '9') + || *p == '_' || *p == '-') + g_string_append_c (string, *p); + else if (*p == ' ') + string = g_string_append_c (string, '_'); + } - /* return the new string */ - return g_string_free (string, FALSE); + /* return the new string */ + return g_string_free (string, FALSE); } Modified: xfce4-settings/branches/multiple_pointers/main.c =================================================================== --- xfce4-settings/branches/multiple_pointers/main.c 2008-07-08 13:23:16 UTC (rev 27236) +++ xfce4-settings/branches/multiple_pointers/main.c 2008-07-08 15:27:52 UTC (rev 27237) @@ -709,29 +709,29 @@ static gchar * mouse_settings_device_xfconf_name (const gchar *name) { - GString *string; - const gchar *p; + GString *string; + const gchar *p; - /* NOTE: this function is also in the mouse dialog code - * and they have to be identical! */ + /* NOTE: this function exists in both the dialog and + * daemon code and they have to identical! */ - /* allocate a string */ - string = g_string_sized_new (strlen (name)); + /* allocate a string */ + string = g_string_sized_new (strlen (name)); - /* create a name with only valid chars */ - for (p = name; *p != '\0'; p++) - { - if ((*p >= 'A' && *p <= 'Z') - || (*p >= 'a' && *p <= 'z') - || (*p >= '0' && *p <= '9') - || *p == '_' || *p == '-') - string = g_string_append_c (string, *p); - else if (*p == ' ') - string = g_string_append_c (string, '_'); - } + /* create a name with only valid chars */ + for (p = name; *p != '\0'; p++) + { + if ((*p >= 'A' && *p <= 'Z') + || (*p >= 'a' && *p <= 'z') + || (*p >= '0' && *p <= '9') + || *p == '_' || *p == '-') + string = g_string_append_c (string, *p); + else if (*p == ' ') + string = g_string_append_c (string, '_'); + } - /* return the new string */ - return g_string_free (string, FALSE); + /* return the new string */ + return g_string_free (string, FALSE); } _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits