static void
_on_mouse_down_text(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, void *event_info EINA_UNUSED)
{
+ static char *env_lang_str = NULL;
+ char *s;
+
lang_idx = (lang_idx + 1) % (sizeof (lang)/ sizeof (lang[0]));
fprintf(stderr, "Setting lang to '%s'\n", lang[lang_idx]);
- setenv("LANGUAGE", lang[lang_idx], 1);
+ s = malloc(10 + strlen(lang[lang_idx]));
+ if (s)
+ {
+ strcpy(s, "LANGUAGE=");
+ strcpy(s + 9, lang[lang_idx]);
+ putenv(s);
+ if (env_lang_str) free(env_lang_str);
+ env_lang_str = s;
+ }
edje_language_set(lang[lang_idx]);
}
int
evas_object_move(edje_obj, 0, 20);
evas_object_resize(edje_obj, WIDTH - 40, HEIGHT - 40);
evas_object_show(edje_obj);
- setenv("LANGUAGE", "en_IN", 1);
+ putenv("LANGUAGE=en_IN");
edje_object_language_set(edje_obj, "en_IN");
edje_object_text_change_cb_set(edje_obj, _on_text_change, NULL);
edje_object_part_text_set(edje_obj, "part_two", "<b>Click here");
if (!ecore_evas_init()) return 0;
- setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
+ putenv("ECORE_EVAS_ENGINE=opengl_x11");
ecore_evas = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
if (!ecore_evas) return 0;
main(void)
{
// Unless Evas 3D supports Software renderer, we force use of the gl backend.
- setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
+ putenv("ECORE_EVAS_ENGINE=opengl_x11");
Scene_Data data;
main(void)
{
// Unless Evas 3D supports Software renderer, we force use of the gl backend.
- setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
+ putenv("ECORE_EVAS_ENGINE=opengl_x11");
Scene_Data data;
main(void)
{
// Unless Evas 3D supports Software renderer, we force use of the gl backend.
- setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
+ putenv("ECORE_EVAS_ENGINE=opengl_x11");
if (!ecore_evas_init()) return 0;
main(void)
{
// Unless Evas 3D supports Software renderer, we force use of the gl backend.
- setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
+ putenv("ECORE_EVAS_ENGINE=opengl_x11");
Scene_Data data;
Ecore_Animator *anim;
if (!ecore_evas_init()) return 0;
- setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
+ putenv("ECORE_EVAS_ENGINE=opengl_x11");
ecore_evas = ecore_evas_new("opengl_x11", 0, 0, WIDTH, HEIGHT, NULL);
if (!ecore_evas) return 0;
Scene_Data data;
// Unless Evas 3D supports Software renderer, we force use of the gl backend.
- setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
+ putenv("ECORE_EVAS_ENGINE=opengl_x11");
if (!ecore_evas_init()) return 0;
main(void)
{
// Unless Evas 3D supports Software renderer, we force use of the gl backend.
- setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
+ putenv("ECORE_EVAS_ENGINE=opengl_x11");
if (!ecore_evas_init()) return 0;
Eina_File *obj_file, *ply_file, *eet_file, *md2_file;
// Unless Evas 3D supports Software renderer, we force use of the gl backend.
- setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
+ putenv("ECORE_EVAS_ENGINE=opengl_x11");
if (!ecore_evas_init()) return 0;
char buffer[PATH_MAX], full_file_path[PATH_MAX + 4];
// Unless Evas 3D supports Software renderer, we force use of the gl backend.
- setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
+ putenv("ECORE_EVAS_ENGINE=opengl_x11");
if (!ecore_evas_init()) return 0;
main(void)
{
// Unless Evas 3D supports Software renderer, we force use of the gl backend.
- setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
+ putenv("ECORE_EVAS_ENGINE=opengl_x11");
Scene_Data data;
main(void)
{
// Unless Evas 3D supports Software renderer, we force use of the gl backend.
- setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
+ putenv("ECORE_EVAS_ENGINE=opengl_x11");
if (!ecore_evas_init()) return 0;
}
// Unless Evas 3D supports Software renderer, we force use of the gl backend.
- setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
+ putenv("ECORE_EVAS_ENGINE=opengl_x11");
if (!ecore_evas_init()) return 0;
main(void)
{
// Unless Evas 3D supports Software renderer, we force use of the gl backend.
- setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
+ putenv("ECORE_EVAS_ENGINE=opengl_x11");
Scene_Data data;
Eina_List *nodes1 = NULL, *nodes2 = NULL;
// Unless Evas 3D supports Software renderer, we force use of the gl backend.
- setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
+ putenv("ECORE_EVAS_ENGINE=opengl_x11");
if (!ecore_evas_init()) return 0;
ecore_evas = ecore_evas_new(NULL, 10, 10, WIDTH, HEIGHT, NULL);
main(void)
{
// Unless Evas 3D supports Software renderer, we force use of the gl backend.
- setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
+ putenv("ECORE_EVAS_ENGINE=opengl_x11");
Scene_Data data;
if (!ecore_evas_init())
return -1;
- //setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1);
+ //putenv("ECORE_EVAS_ENGINE=opengl_x11");
ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
if (!ee) return -1;
main(void)
{
//Cairo backend is not supported.
- setenv("ECTOR_BACKEND", "default", 1);
+ putenv("ECTOR_BACKEND=default");
if (!ecore_evas_init())
return EXIT_FAILURE;