summaryrefslogtreecommitdiff
path: root/src/examples/edje/edje-text.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/edje/edje-text.c')
-rw-r--r--src/examples/edje/edje-text.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/examples/edje/edje-text.c b/src/examples/edje/edje-text.c
index 7fc830c..21efb05 100644
--- a/src/examples/edje/edje-text.c
+++ b/src/examples/edje/edje-text.c
@@ -55,7 +55,7 @@ _on_mouse_down(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *o EINA_
55 fprintf(stderr, "Setting lang of this edje object to '%s'\n", lang[lang_idx]); 55 fprintf(stderr, "Setting lang of this edje object to '%s'\n", lang[lang_idx]);
56 env = getenv("LANGUAGE"); 56 env = getenv("LANGUAGE");
57 setenv("LANGUAGE", lang[lang_idx], 1); 57 setenv("LANGUAGE", lang[lang_idx], 1);
58 eo_do(o, edje_obj_language_set(lang[lang_idx])); 58 edje_obj_language_set(o, lang[lang_idx]);
59 setenv("LANGUAGE", env, 1); 59 setenv("LANGUAGE", env, 1);
60} 60}
61 61
@@ -108,7 +108,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
108 evas_object_resize(edje_obj, WIDTH - 40, HEIGHT - 40); 108 evas_object_resize(edje_obj, WIDTH - 40, HEIGHT - 40);
109 evas_object_show(edje_obj); 109 evas_object_show(edje_obj);
110 setenv("LANGUAGE", "en_IN", 1); 110 setenv("LANGUAGE", "en_IN", 1);
111 eo_do(edje_obj, edje_obj_language_set("en_IN")); 111 edje_obj_language_set(edje_obj, "en_IN");
112 edje_object_text_change_cb_set(edje_obj, _on_text_change, NULL); 112 edje_object_text_change_cb_set(edje_obj, _on_text_change, NULL);
113 edje_object_part_text_set(edje_obj, "part_two", "<b>Click here"); 113 edje_object_part_text_set(edje_obj, "part_two", "<b>Click here");
114 edje_object_part_text_select_allow_set(edje_obj, "part_two", EINA_TRUE); 114 edje_object_part_text_select_allow_set(edje_obj, "part_two", EINA_TRUE);
@@ -123,7 +123,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
123 evas_object_move(edje_obj_one, 0, 50); 123 evas_object_move(edje_obj_one, 0, 50);
124 evas_object_resize(edje_obj_one, WIDTH - 40, HEIGHT - 40); 124 evas_object_resize(edje_obj_one, WIDTH - 40, HEIGHT - 40);
125 evas_object_show(edje_obj_one); 125 evas_object_show(edje_obj_one);
126 eo_do(edje_obj_one, edje_obj_language_set("en_IN")); 126 edje_obj_language_set(edje_obj_one, "en_IN");
127 edje_object_text_change_cb_set(edje_obj_one, _on_text_change, NULL); 127 edje_object_text_change_cb_set(edje_obj_one, _on_text_change, NULL);
128 edje_object_part_text_set(edje_obj_one, "part_two", "<b>Click here"); 128 edje_object_part_text_set(edje_obj_one, "part_two", "<b>Click here");
129 edje_object_part_text_select_allow_set(edje_obj_one, "part_two", EINA_TRUE); 129 edje_object_part_text_select_allow_set(edje_obj_one, "part_two", EINA_TRUE);