]> err.no Git - mapper/commitdiff
misc
authorKaj-Michael Lang <milang@angel.tal.org>
Thu, 6 Sep 2007 07:43:14 +0000 (10:43 +0300)
committerKaj-Michael Lang <milang@angel.tal.org>
Thu, 6 Sep 2007 07:43:14 +0000 (10:43 +0300)
src/config-gconf.c

index 2816b7495885d6462793caa76b48a549cff80551..7c6f1539a7e2fa6f328c55faaf2613f2dec6e3c0 100644 (file)
@@ -478,9 +478,7 @@ void config_init(void)
        _auto_download = gconf_client_get_bool(gconf_client, GCONF_KEY_AUTO_DOWNLOAD, NULL);
 
        /* Get Center Ratio - Default is 3. */
-       _center_ratio = gconf_client_get_int(gconf_client,
-                                            GCONF_KEY_CENTER_SENSITIVITY,
-                                            NULL);
+       _center_ratio = gconf_client_get_int(gconf_client, GCONF_KEY_CENTER_SENSITIVITY, NULL);
        if (!_center_ratio)
                _center_ratio = 7;
 
@@ -488,13 +486,12 @@ void config_init(void)
        _dest.valid=FALSE;
 
        /* Get Lead Ratio - Default is 5. */
-       _lead_ratio = gconf_client_get_int(gconf_client,
-                                          GCONF_KEY_LEAD_AMOUNT, NULL);
+       _lead_ratio = gconf_client_get_int(gconf_client, GCONF_KEY_LEAD_AMOUNT, NULL);
        if (!_lead_ratio)
                _lead_ratio = 5;
 
        /* Get Draw Line Width- Default is 4. */
-       _draw_width = gconf_client_get_int(gconf_client,  GCONF_KEY_DRAW_WIDTH, NULL);
+       _draw_width = gconf_client_get_int(gconf_client, GCONF_KEY_DRAW_WIDTH, NULL);
        if (!_draw_width)
                _draw_width = 4;
 
@@ -547,9 +544,7 @@ void config_init(void)
 
        /* Get Units.  Default is UNITS_KM. */
        {
-               gchar *units_str = gconf_client_get_string(gconf_client,
-                                                          GCONF_KEY_UNITS,
-                                                          NULL);
+               gchar *units_str = gconf_client_get_string(gconf_client, GCONF_KEY_UNITS, NULL);
                guint i = 0;
                if (units_str)
                        for (i = UNITS_ENUM_COUNT - 1; i > 0; i--)
@@ -563,12 +558,9 @@ void config_init(void)
                gint i;
                for (i = 0; i < CUSTOM_KEY_ENUM_COUNT; i++) {
                        gint j = CUSTOM_KEY_DEFAULT[i];
-                       gchar *str = gconf_client_get_string(gconf_client,
-                                                            CUSTOM_KEY_GCONF
-                                                            [i], NULL);
+                       gchar *str = gconf_client_get_string(gconf_client, CUSTOM_KEY_GCONF[i], NULL);
                        if (str)
-                               for (j = CUSTOM_ACTION_ENUM_COUNT - 1; j > 0;
-                                    j--)
+                               for (j = CUSTOM_ACTION_ENUM_COUNT - 1; j > 0; j--)
                                        if (!strcmp(str, CUSTOM_ACTION_TEXT[j]))
                                                break;
                        _action[i] = j;
@@ -594,15 +586,13 @@ void config_init(void)
                                                GCONF_KEY_SPEED_LIMIT_ON, NULL);
 
        /* Get Speed Limit */
-       _speed_limit = gconf_client_get_int(gconf_client,
-                                           GCONF_KEY_SPEED_LIMIT, NULL);
+       _speed_limit = gconf_client_get_int(gconf_client, GCONF_KEY_SPEED_LIMIT, NULL);
        if (_speed_limit <= 0)
                _speed_limit = 100;
 
        /* Get Speed Location.  Default is SPEED_LOCATION_TOP_LEFT. */
        {
-               gchar *speed_location_str =
-                   gconf_client_get_string(gconf_client,
+               gchar *speed_location_str = gconf_client_get_string(gconf_client,
                                            GCONF_KEY_SPEED_LOCATION, NULL);
                guint i = 0;
                if (speed_location_str)