summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/config.c18
-rw-r--r--src/bin/config.h7
-rw-r--r--src/bin/main.c2
-rw-r--r--src/bin/options_background.c10
-rw-r--r--src/bin/options_behavior.c20
-rw-r--r--src/bin/options_colors.c4
-rw-r--r--src/bin/options_font.c6
-rw-r--r--src/bin/options_helpers.c16
-rw-r--r--src/bin/options_keys.c4
-rw-r--r--src/bin/options_theme.c2
-rw-r--r--src/bin/options_video.c6
-rw-r--r--src/bin/win.c9
12 files changed, 48 insertions, 56 deletions
diff --git a/src/bin/config.c b/src/bin/config.c
index b205b8f..9cb4fa2 100644
--- a/src/bin/config.c
+++ b/src/bin/config.c
@@ -8,6 +8,7 @@
8#include "utils.h" 8#include "utils.h"
9 9
10#define CONF_VER 22 10#define CONF_VER 22
11#define CONFIG_KEY "config"
11 12
12#define LIM(v, min, max) {if (v >= max) v = max; else if (v <= min) v = min;} 13#define LIM(v, min, max) {if (v >= max) v = max; else if (v <= min) v = min;}
13 14
@@ -207,7 +208,7 @@ config_shutdown(void)
207} 208}
208 209
209void 210void
210config_save(Config *config, const char *key) 211config_save(Config *config)
211{ 212{
212 Eet_File *ef; 213 Eet_File *ef;
213 char buf[PATH_MAX], buf2[PATH_MAX]; 214 char buf[PATH_MAX], buf2[PATH_MAX];
@@ -221,7 +222,6 @@ config_save(Config *config, const char *key)
221 main_config_sync(config); 222 main_config_sync(config);
222 return; 223 return;
223 } 224 }
224 if (!key) key = config->config_key;
225 config->font.orig_size = config->font.size; 225 config->font.orig_size = config->font.size;
226 eina_stringshare_del(config->font.orig_name); 226 eina_stringshare_del(config->font.orig_name);
227 config->font.orig_name = NULL; 227 config->font.orig_name = NULL;
@@ -236,7 +236,7 @@ config_save(Config *config, const char *key)
236 ef = eet_open(buf, EET_FILE_MODE_WRITE); 236 ef = eet_open(buf, EET_FILE_MODE_WRITE);
237 if (ef) 237 if (ef)
238 { 238 {
239 ok = eet_data_write(ef, edd_base, key, config, 1); 239 ok = eet_data_write(ef, edd_base, CONFIG_KEY, config, 1);
240 eet_close(ef); 240 eet_close(ef);
241 if (ok) ecore_file_mv(buf, buf2); 241 if (ok) ecore_file_mv(buf, buf2);
242 } 242 }
@@ -581,21 +581,19 @@ config_new(void)
581 581
582 582
583Config * 583Config *
584config_load(const char *key) 584config_load(void)
585{ 585{
586 Eet_File *ef; 586 Eet_File *ef;
587 char buf[PATH_MAX]; 587 char buf[PATH_MAX];
588 const char *cfgdir; 588 const char *cfgdir;
589 Config *config = NULL; 589 Config *config = NULL;
590 590
591 EINA_SAFETY_ON_NULL_RETURN_VAL(key, NULL);
592
593 cfgdir = _config_home_get(); 591 cfgdir = _config_home_get();
594 snprintf(buf, sizeof(buf), "%s/terminology/config/standard/base.cfg", cfgdir); 592 snprintf(buf, sizeof(buf), "%s/terminology/config/standard/base.cfg", cfgdir);
595 ef = eet_open(buf, EET_FILE_MODE_READ); 593 ef = eet_open(buf, EET_FILE_MODE_READ);
596 if (ef) 594 if (ef)
597 { 595 {
598 config = eet_data_read(ef, edd_base, key); 596 config = eet_data_read(ef, edd_base, CONFIG_KEY);
599 eet_close(ef); 597 eet_close(ef);
600 if (config) 598 if (config)
601 { 599 {
@@ -731,9 +729,6 @@ config_load(const char *key)
731 config->font_set = 1; 729 config->font_set = 1;
732 } 730 }
733 731
734 if (config)
735 config->config_key = eina_stringshare_add(key); /* not in eet */
736
737 return config; 732 return config;
738} 733}
739 734
@@ -804,7 +799,6 @@ config_fork(const Config *config)
804 CPY(mouse_over_focus); 799 CPY(mouse_over_focus);
805 CPY(disable_focus_visuals); 800 CPY(disable_focus_visuals);
806 CPY(temporary); 801 CPY(temporary);
807 SCPY(config_key);
808 CPY(font_set); 802 CPY(font_set);
809 CPY(gravatar); 803 CPY(gravatar);
810 CPY(notabs); 804 CPY(notabs);
@@ -851,8 +845,6 @@ config_del(Config *config)
851 eina_stringshare_del(config->helper.local.video); 845 eina_stringshare_del(config->helper.local.video);
852 eina_stringshare_del(config->helper.local.image); 846 eina_stringshare_del(config->helper.local.image);
853 847
854 eina_stringshare_del(config->config_key); /* not in eet */
855
856 EINA_LIST_FREE(config->keys, key) 848 EINA_LIST_FREE(config->keys, key)
857 { 849 {
858 eina_stringshare_del(key->keyname); 850 eina_stringshare_del(key->keyname);
diff --git a/src/bin/config.h b/src/bin/config.h
index e9e65c7..b74a4a9 100644
--- a/src/bin/config.h
+++ b/src/bin/config.h
@@ -99,16 +99,15 @@ struct _Config
99 99
100 Eina_Bool temporary; /* not in EET */ 100 Eina_Bool temporary; /* not in EET */
101 Eina_Bool font_set; /* not in EET */ 101 Eina_Bool font_set; /* not in EET */
102 const char *config_key; /* not in EET, the key that config was loaded */
103}; 102};
104 103
105void config_init(void); 104void config_init(void);
106void config_shutdown(void); 105void config_shutdown(void);
107void config_sync(const Config *config_src, Config *config); 106void config_sync(const Config *config_src, Config *config);
108void config_save(Config *config, const char *key); 107void config_save(Config *config);
109Config *config_load(const char *key); 108Config *config_load(void);
110Config *config_fork(const Config *config); 109Config *config_fork(const Config *config);
111Config *config_new(); 110Config *config_new(void);
112void config_del(Config *config); 111void config_del(Config *config);
113void config_default_font_set(Config *config, Evas *evas); 112void config_default_font_set(Config *config, Evas *evas);
114void config_reset_keys(Config *config); 113void config_reset_keys(Config *config);
diff --git a/src/bin/main.c b/src/bin/main.c
index 0cc1252..b50dbbe 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -582,7 +582,7 @@ elm_main(int argc, char **argv)
582 582
583 config_init(); 583 config_init();
584 584
585 _main_config = config_load("config"); 585 _main_config = config_load();
586 if (key_bindings_load(_main_config) < 0) 586 if (key_bindings_load(_main_config) < 0)
587 { 587 {
588 CRITICAL(_("Could not initialize key bindings.")); 588 CRITICAL(_("Could not initialize key bindings."));
diff --git a/src/bin/options_background.c b/src/bin/options_background.c
index a7d836e..530ade1 100644
--- a/src/bin/options_background.c
+++ b/src/bin/options_background.c
@@ -77,7 +77,7 @@ _cb_op_video_trans_chg(void *data,
77 config->translucent = elm_check_state_get(obj); 77 config->translucent = elm_check_state_get(obj);
78 elm_object_disabled_set(ctx->op_opacity, !config->translucent); 78 elm_object_disabled_set(ctx->op_opacity, !config->translucent);
79 main_trans_update(config); 79 main_trans_update(config);
80 config_save(config, NULL); 80 config_save(config);
81} 81}
82 82
83static void 83static void
@@ -92,7 +92,7 @@ _cb_op_video_opacity_chg(void *data,
92 if (!config->translucent) 92 if (!config->translucent)
93 return; 93 return;
94 main_trans_update(config); 94 main_trans_update(config);
95 config_save(config, NULL); 95 config_save(config);
96} 96}
97 97
98static void 98static void
@@ -227,12 +227,12 @@ _item_selected(void *data,
227 // no background 227 // no background
228 eina_stringshare_del(config->background); 228 eina_stringshare_del(config->background);
229 config->background = NULL; 229 config->background = NULL;
230 config_save(config, NULL); 230 config_save(config);
231 main_media_update(config); 231 main_media_update(config);
232 } 232 }
233 else if (eina_stringshare_replace(&(config->background), item->path)) 233 else if (eina_stringshare_replace(&(config->background), item->path))
234 { 234 {
235 config_save(config, NULL); 235 config_save(config);
236 main_media_update(config); 236 main_media_update(config);
237 } 237 }
238} 238}
@@ -505,7 +505,7 @@ _cb_grid_doubleclick(void *data,
505 if (newfile) 505 if (newfile)
506 { 506 {
507 eina_stringshare_replace(&(config->background), newfile); 507 eina_stringshare_replace(&(config->background), newfile);
508 config_save(config, NULL); 508 config_save(config);
509 main_media_update(config); 509 main_media_update(config);
510 eina_stringshare_del(newfile); 510 eina_stringshare_del(newfile);
511 _bubble_show(ctx, _("Picture imported")); 511 _bubble_show(ctx, _("Picture imported"));
diff --git a/src/bin/options_behavior.c b/src/bin/options_behavior.c
index 7216472..4fb0c9b 100644
--- a/src/bin/options_behavior.c
+++ b/src/bin/options_behavior.c
@@ -34,7 +34,7 @@ _cb_op_behavior_##_cfg_name(void *data, Evas_Object *obj, \
34 config->_cfg_name = elm_check_state_get(obj); \ 34 config->_cfg_name = elm_check_state_get(obj); \
35 termio_config_update(ctx->term); \ 35 termio_config_update(ctx->term); \
36 windows_update(); \ 36 windows_update(); \
37 config_save(config, NULL); \ 37 config_save(config); \
38} 38}
39 39
40CB(jump_on_change, 0); 40CB(jump_on_change, 0);
@@ -94,7 +94,7 @@ _cb_op_behavior_sback_chg(void *data,
94 94
95 config->scrollback = (double) sback_double_to_expo_int(elm_slider_value_get(obj)); 95 config->scrollback = (double) sback_double_to_expo_int(elm_slider_value_get(obj));
96 termio_config_update(ctx->term); 96 termio_config_update(ctx->term);
97 config_save(config, NULL); 97 config_save(config);
98} 98}
99 99
100static void 100static void
@@ -107,7 +107,7 @@ _cb_op_behavior_tab_zoom_slider_chg(void *data,
107 107
108 config->tab_zoom = (double)(int)round(elm_slider_value_get(obj) * 10.0) / 10.0; 108 config->tab_zoom = (double)(int)round(elm_slider_value_get(obj) * 10.0) / 10.0;
109 termio_config_update(ctx->term); 109 termio_config_update(ctx->term);
110 config_save(config, NULL); 110 config_save(config);
111} 111}
112 112
113static void 113static void
@@ -124,7 +124,7 @@ _cb_op_behavior_custom_geometry_current_set(void *data,
124 elm_spinner_value_set(ctx->op_w, config->cg_width); 124 elm_spinner_value_set(ctx->op_w, config->cg_width);
125 elm_spinner_value_set(ctx->op_h, config->cg_height); 125 elm_spinner_value_set(ctx->op_h, config->cg_height);
126 } 126 }
127 config_save(config, NULL); 127 config_save(config);
128} 128}
129 129
130static void 130static void
@@ -141,7 +141,7 @@ _cb_op_behavior_custom_geometry(void *data,
141 config->cg_width = (int) elm_spinner_value_get(ctx->op_w); 141 config->cg_width = (int) elm_spinner_value_get(ctx->op_w);
142 config->cg_height = (int) elm_spinner_value_get(ctx->op_h); 142 config->cg_height = (int) elm_spinner_value_get(ctx->op_h);
143 } 143 }
144 config_save(config, NULL); 144 config_save(config);
145 145
146 elm_object_disabled_set(ctx->op_w, !config->custom_geometry); 146 elm_object_disabled_set(ctx->op_w, !config->custom_geometry);
147 elm_object_disabled_set(ctx->op_h, !config->custom_geometry); 147 elm_object_disabled_set(ctx->op_h, !config->custom_geometry);
@@ -159,7 +159,7 @@ _cb_op_behavior_cg_width(void *data,
159 if (config->custom_geometry) 159 if (config->custom_geometry)
160 { 160 {
161 config->cg_width = (int) elm_spinner_value_get(obj); 161 config->cg_width = (int) elm_spinner_value_get(obj);
162 config_save(config, NULL); 162 config_save(config);
163 } 163 }
164} 164}
165 165
@@ -174,7 +174,7 @@ _cb_op_behavior_cg_height(void *data,
174 if (config->custom_geometry) 174 if (config->custom_geometry)
175 { 175 {
176 config->cg_height = (int) elm_spinner_value_get(obj); 176 config->cg_height = (int) elm_spinner_value_get(obj);
177 config_save(config, NULL); 177 config_save(config);
178 } 178 }
179} 179}
180 180
@@ -203,7 +203,7 @@ _cursors_changed_cb(void *data, Evas_Object *obj,
203 203
204 termio_config_update(ctx->term); 204 termio_config_update(ctx->term);
205 windows_update(); 205 windows_update();
206 config_save(config, NULL); 206 config_save(config);
207} 207}
208 208
209static void 209static void
@@ -224,7 +224,7 @@ _cb_op_hide_cursor_changed(void *data,
224 config->hide_cursor = CONFIG_CURSOR_IDLE_TIMEOUT_MAX + 1.0; 224 config->hide_cursor = CONFIG_CURSOR_IDLE_TIMEOUT_MAX + 1.0;
225 elm_object_disabled_set(ctx->sld_hide_cursor, EINA_TRUE); 225 elm_object_disabled_set(ctx->sld_hide_cursor, EINA_TRUE);
226 } 226 }
227 config_save(config, NULL); 227 config_save(config);
228} 228}
229 229
230static void 230static void
@@ -240,7 +240,7 @@ _cb_hide_cursor_slider_chg(void *data,
240 return; 240 return;
241 241
242 config->hide_cursor = value; 242 config->hide_cursor = value;
243 config_save(config, NULL); 243 config_save(config);
244} 244}
245 245
246 246
diff --git a/src/bin/options_colors.c b/src/bin/options_colors.c
index 62b1640..4fbde83 100644
--- a/src/bin/options_colors.c
+++ b/src/bin/options_colors.c
@@ -101,7 +101,7 @@ _cb_op_color_chg(void *data,
101 config->colors[(j * 12) + i].b = b * a / 256; 101 config->colors[(j * 12) + i].b = b * a / 256;
102 config->colors[(j * 12) + i].a = a; 102 config->colors[(j * 12) + i].a = a;
103 termio_config_update(ctx->term); 103 termio_config_update(ctx->term);
104 config_save(config, NULL); 104 config_save(config);
105 return; 105 return;
106 } 106 }
107 } 107 }
@@ -184,7 +184,7 @@ _cb_op_reset(void *data,
184 elm_colorselector_palette_item_color_get(ctx->curitem, &r, &g, &b, &a); 184 elm_colorselector_palette_item_color_get(ctx->curitem, &r, &g, &b, &a);
185 elm_colorselector_color_set(ctx->colorsel, r, g, b, a); 185 elm_colorselector_color_set(ctx->colorsel, r, g, b, a);
186 termio_config_update(term); 186 termio_config_update(term);
187 config_save(config, NULL); 187 config_save(config);
188} 188}
189 189
190/* make color palettes wrap back. :) works with elm git. */ 190/* make color palettes wrap back. :) works with elm git. */
diff --git a/src/bin/options_font.c b/src/bin/options_font.c
index 407694a..d90e7e9 100644
--- a/src/bin/options_font.c
+++ b/src/bin/options_font.c
@@ -157,7 +157,7 @@ _cb_op_font_sel(void *data,
157 elm_object_disabled_set(ctx->op_fsml, f->bitmap); 157 elm_object_disabled_set(ctx->op_fsml, f->bitmap);
158 elm_object_disabled_set(ctx->op_fontslider, f->bitmap); 158 elm_object_disabled_set(ctx->op_fontslider, f->bitmap);
159 elm_object_disabled_set(ctx->op_fbig, f->bitmap); 159 elm_object_disabled_set(ctx->op_fbig, f->bitmap);
160 config_save(config, NULL); 160 config_save(config);
161 win_font_update(term); 161 win_font_update(term);
162} 162}
163 163
@@ -176,7 +176,7 @@ _cb_op_fontsize_sel(void *data,
176 config->font.size = size; 176 config->font.size = size;
177 _update_sizing(ctx); 177 _update_sizing(ctx);
178 elm_genlist_realized_items_update(ctx->op_fontlist); 178 elm_genlist_realized_items_update(ctx->op_fontlist);
179 config_save(config, NULL); 179 config_save(config);
180 win_font_update(term); 180 win_font_update(term);
181} 181}
182 182
@@ -398,7 +398,7 @@ _cb_font_bolditalic(void *data,
398 398
399 config->font.bolditalic = elm_check_state_get(obj); 399 config->font.bolditalic = elm_check_state_get(obj);
400 termio_config_update(ctx->term); 400 termio_config_update(ctx->term);
401 config_save(config, NULL); 401 config_save(config);
402} 402}
403 403
404void 404void
diff --git a/src/bin/options_helpers.c b/src/bin/options_helpers.c
index 00c29a7..c33e368 100644
--- a/src/bin/options_helpers.c
+++ b/src/bin/options_helpers.c
@@ -15,7 +15,7 @@ _cb_op_helper_inline_chg(void *data,
15 Evas_Object *term = data; 15 Evas_Object *term = data;
16 Config *config = termio_config_get(term); 16 Config *config = termio_config_get(term);
17 config->helper.inline_please = elm_check_state_get(obj); 17 config->helper.inline_please = elm_check_state_get(obj);
18 config_save(config, NULL); 18 config_save(config);
19} 19}
20 20
21static void 21static void
@@ -38,7 +38,7 @@ _cb_op_helper_email_chg(void *data,
38 config->helper.email = eina_stringshare_add(txt); 38 config->helper.email = eina_stringshare_add(txt);
39 free(txt); 39 free(txt);
40 } 40 }
41 config_save(config, NULL); 41 config_save(config);
42} 42}
43 43
44static void 44static void
@@ -61,7 +61,7 @@ _cb_op_helper_url_image_chg(void *data,
61 config->helper.url.image = eina_stringshare_add(txt); 61 config->helper.url.image = eina_stringshare_add(txt);
62 free(txt); 62 free(txt);
63 } 63 }
64 config_save(config, NULL); 64 config_save(config);
65} 65}
66 66
67static void 67static void
@@ -84,7 +84,7 @@ _cb_op_helper_url_video_chg(void *data,
84 config->helper.url.video = eina_stringshare_add(txt); 84 config->helper.url.video = eina_stringshare_add(txt);
85 free(txt); 85 free(txt);
86 } 86 }
87 config_save(config, NULL); 87 config_save(config);
88} 88}
89 89
90static void 90static void
@@ -107,7 +107,7 @@ _cb_op_helper_url_general_chg(void *data,
107 config->helper.url.general = eina_stringshare_add(txt); 107 config->helper.url.general = eina_stringshare_add(txt);
108 free(txt); 108 free(txt);
109 } 109 }
110 config_save(config, NULL); 110 config_save(config);
111} 111}
112 112
113static void 113static void
@@ -130,7 +130,7 @@ _cb_op_helper_local_image_chg(void *data,
130 config->helper.local.image = eina_stringshare_add(txt); 130 config->helper.local.image = eina_stringshare_add(txt);
131 free(txt); 131 free(txt);
132 } 132 }
133 config_save(config, NULL); 133 config_save(config);
134} 134}
135 135
136static void 136static void
@@ -153,7 +153,7 @@ _cb_op_helper_local_video_chg(void *data,
153 config->helper.local.video = eina_stringshare_add(txt); 153 config->helper.local.video = eina_stringshare_add(txt);
154 free(txt); 154 free(txt);
155 } 155 }
156 config_save(config, NULL); 156 config_save(config);
157} 157}
158 158
159static void 159static void
@@ -176,7 +176,7 @@ _cb_op_helper_local_general_chg(void *data,
176 config->helper.local.general = eina_stringshare_add(txt); 176 config->helper.local.general = eina_stringshare_add(txt);
177 free(txt); 177 free(txt);
178 } 178 }
179 config_save(config, NULL); 179 config_save(config);
180} 180}
181 181
182void 182void
diff --git a/src/bin/options_keys.c b/src/bin/options_keys.c
index 3d78477..47f088f 100644
--- a/src/bin/options_keys.c
+++ b/src/bin/options_keys.c
@@ -51,7 +51,7 @@ _shortcut_delete(void *data,
51 eina_stringshare_del(cfg_key->cb); 51 eina_stringshare_del(cfg_key->cb);
52 free(cfg_key); 52 free(cfg_key);
53 53
54 config_save(ctx->config, NULL); 54 config_save(ctx->config);
55} 55}
56 56
57static Evas_Object * 57static Evas_Object *
@@ -152,7 +152,7 @@ _cb_key_up(void *data,
152 evas_object_size_hint_min_set(bx, min_w, min_h); 152 evas_object_size_hint_min_set(bx, min_w, min_h);
153 elm_box_pack_before(bx, bt, last); 153 elm_box_pack_before(bx, bt, last);
154 154
155 config_save(ctx->config, NULL); 155 config_save(ctx->config);
156 } 156 }
157 else 157 else
158 { 158 {
diff --git a/src/bin/options_theme.c b/src/bin/options_theme.c
index fb0af9e..38fb019 100644
--- a/src/bin/options_theme.c
+++ b/src/bin/options_theme.c
@@ -79,7 +79,7 @@ _cb_op_theme_sel(void *data,
79 return; 79 return;
80 80
81 eina_stringshare_replace(&(config->theme), t->name); 81 eina_stringshare_replace(&(config->theme), t->name);
82 config_save(config, NULL); 82 config_save(config);
83 change_theme(termio_win_get(t->ctx->term), config); 83 change_theme(termio_win_get(t->ctx->term), config);
84} 84}
85 85
diff --git a/src/bin/options_video.c b/src/bin/options_video.c
index f3f83d3..c243a2c 100644
--- a/src/bin/options_video.c
+++ b/src/bin/options_video.c
@@ -17,7 +17,7 @@ _cb_op_video_mute_chg(void *data,
17 Config *config = termio_config_get(term); 17 Config *config = termio_config_get(term);
18 config->mute = elm_check_state_get(obj); 18 config->mute = elm_check_state_get(obj);
19 main_media_mute_update(config); 19 main_media_mute_update(config);
20 config_save(config, NULL); 20 config_save(config);
21} 21}
22 22
23static void 23static void
@@ -29,7 +29,7 @@ _cb_op_video_visualize_chg(void *data,
29 Config *config = termio_config_get(term); 29 Config *config = termio_config_get(term);
30 config->visualize = elm_check_state_get(obj); 30 config->visualize = elm_check_state_get(obj);
31 main_media_visualize_update(config); 31 main_media_visualize_update(config);
32 config_save(config, NULL); 32 config_save(config);
33} 33}
34 34
35static void 35static void
@@ -43,7 +43,7 @@ _cb_op_video_vidmod_chg(void *data,
43 if (v == config->vidmod) return; 43 if (v == config->vidmod) return;
44 config->vidmod = v; 44 config->vidmod = v;
45 main_media_update(config); 45 main_media_update(config);
46 config_save(config, NULL); 46 config_save(config);
47} 47}
48 48
49void 49void
diff --git a/src/bin/win.c b/src/bin/win.c
index 3ad2080..0ec73ae 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -244,7 +244,7 @@ _scale_done(void *data,
244 ctx->term->wn->on_popover--; 244 ctx->term->wn->on_popover--;
245 term_unref(ctx->term); 245 term_unref(ctx->term);
246 elm_config_save(); 246 elm_config_save();
247 config_save(ctx->term->config, NULL); 247 config_save(ctx->term->config);
248 free(ctx); 248 free(ctx);
249} 249}
250 250
@@ -3937,7 +3937,7 @@ term_apply_shine(Term *term, int shine)
3937 { 3937 {
3938 config->shine = shine; 3938 config->shine = shine;
3939 background_set_shine(config, term->bg); 3939 background_set_shine(config, term->bg);
3940 config_save(config, NULL); 3940 config_save(config);
3941 } 3941 }
3942} 3942}
3943 3943
@@ -4715,7 +4715,8 @@ _set_alpha(Config *config, const char *val, Eina_Bool save)
4715 config->translucent = EINA_FALSE; 4715 config->translucent = EINA_FALSE;
4716 main_trans_update(config); 4716 main_trans_update(config);
4717 4717
4718 if (save) config_save(config, NULL); 4718 if (save)
4719 config_save(config);
4719} 4720}
4720 4721
4721static void 4722static void
@@ -5015,7 +5016,7 @@ _cb_command(void *data,
5015 else 5016 else
5016 eina_stringshare_replace(&(config->background), NULL); 5017 eina_stringshare_replace(&(config->background), NULL);
5017 main_media_update(config); 5018 main_media_update(config);
5018 config_save(config, NULL); 5019 config_save(config);
5019 } 5020 }
5020 } 5021 }
5021 } 5022 }