elementary/elm_entry : elm_entry_single_line_set should not change cnp_mode when...
authorWooHyun Jung <woohyun0705@gmail.com>
Thu, 7 Feb 2013 05:55:49 +0000 (05:55 +0000)
committerWooHyun Jung <woohyun0705@gmail.com>
Thu, 7 Feb 2013 05:55:49 +0000 (05:55 +0000)
SVN revision: 83702

ChangeLog
src/lib/elm_entry.c

index 99abdab..e6aeb0a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 2013-02-05  ChunEon Park (Hermet)
 
         * Index supports "language,changed" smart callback.
+
+2013-02-07  WooHyun Jung
+
+        * elm_entry_single_line_set should not change cnp_mode when PLAINTEXT mode.
index 977a60f..2d59a88 100644 (file)
@@ -3136,7 +3136,8 @@ _single_line_set(Eo *obj, void *_pd, va_list *list)
 
    sd->single_line = single_line;
    sd->line_wrap = ELM_WRAP_NONE;
-   elm_entry_cnp_mode_set(obj, ELM_CNP_MODE_NO_IMAGE);
+   if (elm_entry_cnp_mode_get(obj) == ELM_CNP_MODE_MARKUP)
+     elm_entry_cnp_mode_set(obj, ELM_CNP_MODE_NO_IMAGE);
    eo_do(obj, elm_wdg_theme(NULL));
 
    if (sd->scroll)