summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-12-31 15:42:25 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2016-01-05 22:24:58 +0900
commit37a708d92892aeff0e8ce75c365a58d79fab5bbc (patch)
treeeab288cc7b02485758246c9047513d6993e9aa35
parent9f51ad064259a0184fa7eee3db8abedd92e32230 (diff)
elm config tool - dont need to call save if flush is saving anyway
tis would also make behavior more consistent with the tool as before sometimes it flushed + saved, sometimes just flushed which would lose settings. now since this works right in elm config in the lib, we dont need to save if we flush as flush saves too.
-rw-r--r--src/bin/config.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/bin/config.c b/src/bin/config.c
index 6733be68a..66924cf38 100644
--- a/src/bin/config.c
+++ b/src/bin/config.c
@@ -856,7 +856,6 @@ sel_change(void *data EINA_UNUSED,
856 if (val == sel) return; 856 if (val == sel) return;
857 elm_config_selection_unfocused_clear_set(val); 857 elm_config_selection_unfocused_clear_set(val);
858 elm_config_all_flush(); 858 elm_config_all_flush();
859 elm_config_save();
860} 859}
861 860
862static void 861static void
@@ -870,7 +869,6 @@ dbg_change(void *data EINA_UNUSED,
870 if (val == sel) return; 869 if (val == sel) return;
871 elm_config_clouseau_enabled_set(val); 870 elm_config_clouseau_enabled_set(val);
872 elm_config_all_flush(); 871 elm_config_all_flush();
873 elm_config_save();
874} 872}
875 873
876static void 874static void
@@ -884,7 +882,6 @@ atspi_change(void *data EINA_UNUSED,
884 if (val == sel) return; 882 if (val == sel) return;
885 elm_config_atspi_mode_set(val); 883 elm_config_atspi_mode_set(val);
886 elm_config_all_flush(); 884 elm_config_all_flush();
887 elm_config_save();
888} 885}
889 886
890static void 887static void
@@ -897,7 +894,6 @@ transition_duration_change(void *data EINA_UNUSED,
897 894
898 if (scale == val) return; 895 if (scale == val) return;
899 elm_config_transition_duration_factor_set(val); 896 elm_config_transition_duration_factor_set(val);
900 elm_config_save();
901 elm_config_all_flush(); 897 elm_config_all_flush();
902} 898}
903 899
@@ -1132,7 +1128,6 @@ _font_overlay_set_all(void *data,
1132 } 1128 }
1133 1129
1134 elm_config_all_flush(); 1130 elm_config_all_flush();
1135 elm_config_save();
1136} 1131}
1137 1132
1138static void 1133static void
@@ -1170,7 +1165,6 @@ _font_overlay_reset(void *data,
1170 ELM_LIST_DISABLE(fsizes); 1165 ELM_LIST_DISABLE(fsizes);
1171 1166
1172 elm_config_all_flush(); 1167 elm_config_all_flush();
1173 elm_config_save();
1174} 1168}
1175 1169
1176static void 1170static void
@@ -1210,7 +1204,6 @@ _font_overlay_reset_all(void *data,
1210 ELM_LIST_DISABLE(fsizes); 1204 ELM_LIST_DISABLE(fsizes);
1211 1205
1212 elm_config_all_flush(); 1206 elm_config_all_flush();
1213 elm_config_save();
1214} 1207}
1215 1208
1216static void 1209static void
@@ -1239,7 +1232,6 @@ _font_overlay_change(void *data EINA_UNUSED,
1239 1232
1240 elm_config_font_overlay_apply(); 1233 elm_config_font_overlay_apply();
1241 elm_config_all_flush(); 1234 elm_config_all_flush();
1242 elm_config_save();
1243 1235
1244 /* TODO: apply hinting */ 1236 /* TODO: apply hinting */
1245} 1237}
@@ -1411,7 +1403,6 @@ _profile_use(void *data,
1411 1403
1412 _config_display_update(elm_object_top_widget_get(li)); 1404 _config_display_update(elm_object_top_widget_get(li));
1413 elm_config_all_flush(); 1405 elm_config_all_flush();
1414 elm_config_save(); /* make sure new profile has its data dir */
1415} 1406}
1416 1407
1417static void 1408static void
@@ -1436,7 +1427,6 @@ _profile_reset(void *data,
1436 if (!selection) return; 1427 if (!selection) return;
1437 1428
1438 elm_config_all_flush(); 1429 elm_config_all_flush();
1439 elm_config_save(); /* dump config into old profile's data dir */
1440 1430
1441 pdir = elm_config_profile_dir_get(selection, EINA_TRUE); 1431 pdir = elm_config_profile_dir_get(selection, EINA_TRUE);
1442 if (!pdir) 1432 if (!pdir)
@@ -1449,7 +1439,6 @@ _profile_reset(void *data,
1449 1439
1450 elm_config_all_flush(); 1440 elm_config_all_flush();
1451 _config_display_update(elm_object_top_widget_get(li)); 1441 _config_display_update(elm_object_top_widget_get(li));
1452 elm_config_save(); /* make sure new profile has its data dir */
1453} 1442}
1454 1443
1455static void 1444static void
@@ -1466,7 +1455,6 @@ _theme_use(void *data EINA_UNUSED,
1466 defth = elm_theme_get(th); 1455 defth = elm_theme_get(th);
1467 elm_theme_set(NULL, defth); 1456 elm_theme_set(NULL, defth);
1468 elm_config_all_flush(); 1457 elm_config_all_flush();
1469 elm_config_save();
1470} 1458}
1471 1459
1472static void 1460static void
@@ -3580,7 +3568,6 @@ _cb_accel(void *data, Evas_Object *obj EINA_UNUSED, void *info EINA_UNUSED)
3580 { 3568 {
3581 elm_config_accel_preference_set(val); 3569 elm_config_accel_preference_set(val);
3582 elm_config_all_flush(); 3570 elm_config_all_flush();
3583 elm_config_save();
3584 } 3571 }
3585} 3572}
3586 3573
@@ -3594,7 +3581,6 @@ _cb_accel_override(void *data EINA_UNUSED, Evas_Object *obj, void *info EINA_UNU
3594 { 3581 {
3595 elm_config_accel_preference_override_set(val); 3582 elm_config_accel_preference_override_set(val);
3596 elm_config_all_flush(); 3583 elm_config_all_flush();
3597 elm_config_save();
3598 } 3584 }
3599} 3585}
3600 3586
@@ -3608,7 +3594,6 @@ _cb_vsync(void *data EINA_UNUSED, Evas_Object *obj, void *info EINA_UNUSED)
3608 { 3594 {
3609 elm_config_vsync_set(val); 3595 elm_config_vsync_set(val);
3610 elm_config_all_flush(); 3596 elm_config_all_flush();
3611 elm_config_save();
3612 } 3597 }
3613} 3598}
3614 3599