also support efl-1.7 with tizen patches 86/18386/2 submit/tizen_common/20140523.100137
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Fri, 21 Mar 2014 09:41:09 +0000 (10:41 +0100)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Wed, 14 May 2014 07:42:20 +0000 (09:42 +0200)
Change may be skipped once efl-1.7 is no more supported in tizen

Bug-Tizen: TIVI-2726/part
Change-Id: Ia3b1aa5ea1b43e91b4be21f65ac42c5e40efdf7c
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
src/calc-view.c
src/calculator_edje.c

index fe1fa1a..3ff1f5c 100755 (executable)
@@ -459,7 +459,11 @@ _calc_view_create_history_entry(Evas_Object * parent)
        elm_entry_single_line_set(entry, EINA_FALSE);
        elm_entry_line_wrap_set(entry, ELM_WRAP_WORD);
        elm_entry_editable_set(entry, EINA_FALSE);
+#if (ELM_VERSION_MAJOR == 1) && (ELM_VERSION_MINOR < 8)
+       elm_entry_magnifier_disabled_set(entry, EINA_TRUE);
+#else
        elm_config_magnifier_enable_set(EINA_FALSE);
+#endif
        elm_entry_entry_set(entry, "<align=right>");
        evas_object_size_hint_weight_set(entry, EVAS_HINT_EXPAND, 0.0);
        evas_object_size_hint_align_set(entry, EVAS_HINT_FILL, 0.0);
index d0b48ed..765e6d7 100644 (file)
@@ -2501,7 +2501,11 @@ static Evas_Object *_calc_view_create_input_entry(Evas_Object * parent,
                elm_entry_entry_set(entry, "");
        }
        elm_entry_cnp_mode_set(entry, ELM_CNP_MODE_NO_IMAGE);
+#if (ELM_VERSION_MAJOR == 1) && (ELM_VERSION_MINOR < 8)
+       elm_entry_magnifier_disabled_set(entry, EINA_TRUE);
+#else
        elm_config_magnifier_enable_set(EINA_FALSE);
+#endif
        elm_entry_cursor_end_set(entry);
        elm_object_focus_set(entry, EINA_TRUE);
     elm_object_style_set(entry, "black");