summaryrefslogtreecommitdiff
path: root/src/bin/options_behavior.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/options_behavior.c')
-rw-r--r--src/bin/options_behavior.c20
1 files changed, 10 insertions, 10 deletions
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