summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-01-23 23:05:24 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-01-23 23:08:55 +0900
commit347af06c5fee990463acc02f820522679e03ef4b (patch)
treefd3d7383df5a1e6e6f23f5b6c57e82cdb71dba4f
parent36b7a112ab0c76cb00e6cbddc45ba9ec71aaec7c (diff)
entry: Used macro for entry delay write time.
-rw-r--r--src/lib/elm_entry.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index fdd99c1af..c7ffabdac 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -19,6 +19,7 @@ EAPI Eo_Op ELM_OBJ_ENTRY_BASE_ID = EO_NOOP;
19 * Possibly also find a way to set it to a low value for weak computers, 19 * Possibly also find a way to set it to a low value for weak computers,
20 * and to a big value for better computers. */ 20 * and to a big value for better computers. */
21#define _CHUNK_SIZE 10000 21#define _CHUNK_SIZE 10000
22#define ELM_ENTRY_DELAY_WRITE_TIME 2.0
22 23
23#define ELM_PRIV_ENTRY_SIGNALS(cmd) \ 24#define ELM_PRIV_ENTRY_SIGNALS(cmd) \
24 cmd(SIG_ABORTED, "aborted", "") \ 25 cmd(SIG_ABORTED, "aborted", "") \
@@ -1703,7 +1704,8 @@ _entry_changed_handle(void *data,
1703 evas_event_thaw(evas_object_evas_get(data)); 1704 evas_event_thaw(evas_object_evas_get(data));
1704 evas_event_thaw_eval(evas_object_evas_get(data)); 1705 evas_event_thaw_eval(evas_object_evas_get(data));
1705 if ((sd->auto_save) && (sd->file)) 1706 if ((sd->auto_save) && (sd->file))
1706 sd->delay_write = ecore_timer_add(2.0, _delay_write, data); 1707 sd->delay_write = ecore_timer_add(ELM_ENTRY_DELAY_WRITE_TIME,
1708 _delay_write, data);
1707 1709
1708 _return_key_enabled_check(data); 1710 _return_key_enabled_check(data);
1709 text = edje_object_part_text_get(sd->entry_edje, "elm.text"); 1711 text = edje_object_part_text_get(sd->entry_edje, "elm.text");
@@ -4900,7 +4902,8 @@ _file_save(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
4900 4902
4901 ELM_SAFE_FREE(sd->delay_write, ecore_timer_del); 4903 ELM_SAFE_FREE(sd->delay_write, ecore_timer_del);
4902 _save_do(obj); 4904 _save_do(obj);
4903 sd->delay_write = ecore_timer_add(2.0, _delay_write, obj); 4905 sd->delay_write = ecore_timer_add(ELM_ENTRY_DELAY_WRITE_TIME,
4906 _delay_write, obj);
4904} 4907}
4905 4908
4906EAPI void 4909EAPI void