2 # include "elementary_config.h"
9 #include <Elementary.h>
12 Elm_Config *_elm_config = NULL;
13 char *_elm_profile = NULL;
14 static Eet_Data_Descriptor *_config_edd = NULL;
16 static void _desc_init(void);
17 static void _desc_shutdown(void);
18 static void _profile_get(void);
19 static void _config_free(void);
20 static void _config_apply(void);
21 static Elm_Config * _config_user_load(void);
22 static Elm_Config * _config_system_load(void);
23 static void _config_load(void);
24 static void _config_update(void);
25 static void _env_get(void);
27 #ifdef HAVE_ELEMENTARY_X
28 static Ecore_Event_Handler *_prop_change_handler = NULL;
29 static Ecore_X_Window _root_1st = 0;
31 static Ecore_X_Atom _atom[ATOM_COUNT];
32 static Ecore_X_Atom _atom_config = 0;
33 static Ecore_X_Atom _atom_config_specific = 0;
34 static const char *_atom_names[ATOM_COUNT] =
36 "ENLIGHTENMENT_SCALE",
37 "ENLIGHTENMENT_FINGER_SIZE",
38 "ENLIGHTENMENT_THEME",
39 "ENLIGHTENMENT_PROFILE",
40 "ENLIGHTENMENT_CONFIG",
41 "ENLIGHTENMENT_INPUT_PANEL",
42 "ENLIGHTENMENT_AUTOCAPITAL_ALLOW",
43 "ENLIGHTENMENT_AUTOPERIOD_ALLOW",
45 #define ATOM_E_SCALE 0
46 #define ATOM_E_FINGER_SIZE 1
47 #define ATOM_E_THEME 2
48 #define ATOM_E_PROFILE 3
49 #define ATOM_E_CONFIG 4
50 #define ATOM_E_INPUT_PANEL 5
51 #define ATOM_E_AUTOCAPITAL_ALLOW 6
52 #define ATOM_E_AUTOPERIOD_ALLOW 7
54 static Eina_Bool _prop_config_get(void);
55 static Eina_Bool _prop_change(void *data __UNUSED__, int ev_type __UNUSED__, void *ev);
58 _prop_config_get(void)
63 unsigned char *data = NULL;
64 Elm_Config *config_data;
66 snprintf(buf, sizeof(buf), "ENLIGHTENMENT_CONFIG_%s", _elm_profile);
67 atom = ecore_x_atom_get(buf);
69 if (!ecore_x_window_prop_property_get(_root_1st,
70 atom, _atom[ATOM_E_CONFIG],
73 if (!ecore_x_window_prop_property_get(_root_1st,
79 _atom_config = _atom[ATOM_E_CONFIG];
88 config_data = eet_data_descriptor_decode(_config_edd, data, size);
90 if (!config_data) return EINA_FALSE;
91 /* What do we do on version mismatch when someone changes the
92 * config in the rootwindow? */
93 /* Most obvious case, new version and we are still linked to
94 * whatever was there before, we just ignore until user restarts us */
95 if (config_data->config_version > ELM_CONFIG_VERSION)
97 /* What in the case the version is older? Do we even support those
98 * cases or we only check for equality above? */
100 _elm_config = config_data;
107 _prop_change(void *data __UNUSED__, int ev_type __UNUSED__, void *ev)
109 Ecore_X_Event_Window_Property *event = ev;
111 if (event->win == _root_1st)
113 if (event->atom == _atom[ATOM_E_SCALE])
115 unsigned int val = 1000;
117 if (ecore_x_window_prop_card32_get(event->win,
123 pscale = _elm_config->scale;
124 if (val > 0) _elm_config->scale = (double)val / 1000.0;
125 if (pscale != _elm_config->scale) _elm_rescale();
128 else if (event->atom == _atom[ATOM_E_FINGER_SIZE])
130 unsigned int val = 1000;
132 if (ecore_x_window_prop_card32_get(event->win,
138 pfinger_size = _elm_config->finger_size;
139 _elm_config->finger_size = val;
140 if (pfinger_size != _elm_config->finger_size) _elm_rescale();
143 else if (event->atom == _atom[ATOM_E_THEME])
147 val = ecore_x_window_prop_string_get(event->win,
149 eina_stringshare_replace(&_elm_config->theme, val);
152 _elm_theme_parse(NULL, val);
157 else if (event->atom == _atom[ATOM_E_PROFILE])
161 val = ecore_x_window_prop_string_get(event->win,
169 if (strcmp(_elm_profile, val)) changed = 1;
175 if (!_prop_config_get())
185 else if (event->atom == _atom[ATOM_E_INPUT_PANEL])
187 unsigned int val = 0;
189 if (ecore_x_window_prop_card32_get(event->win,
193 int input_panel_enable;
195 input_panel_enable = _elm_config->input_panel_enable;
196 _elm_config->input_panel_enable = val;
197 if (input_panel_enable != _elm_config->input_panel_enable)
199 edje_input_panel_enabled_set(_elm_config->input_panel_enable);
203 else if (event->atom == _atom[ATOM_E_AUTOCAPITAL_ALLOW])
205 unsigned int val = 0;
207 if (ecore_x_window_prop_card32_get(event->win,
211 int autocapital_allow;
213 autocapital_allow = _elm_config->autocapital_allow;
214 _elm_config->autocapital_allow = val;
215 if (autocapital_allow != _elm_config->autocapital_allow)
217 edje_autocapitalization_allow_set(_elm_config->autocapital_allow);
221 else if (event->atom == _atom[ATOM_E_AUTOPERIOD_ALLOW])
223 unsigned int val = 0;
225 if (ecore_x_window_prop_card32_get(event->win,
229 int autoperiod_allow;
231 autoperiod_allow = _elm_config->autoperiod_allow;
232 _elm_config->autoperiod_allow = val;
233 if (autoperiod_allow != _elm_config->autoperiod_allow)
235 edje_autoperiod_allow_set(_elm_config->autoperiod_allow);
239 else if (((_atom_config > 0) && (event->atom == _atom_config)) ||
240 (event->atom == _atom[ATOM_E_CONFIG]))
246 return ECORE_CALLBACK_PASS_ON;
253 Eet_Data_Descriptor_Class eddc;
255 EET_EINA_FILE_DATA_DESCRIPTOR_CLASS_SET(&eddc, Elm_Config);
256 eddc.func.str_direct_alloc = NULL;
257 eddc.func.str_direct_free = NULL;
259 _config_edd = eet_data_descriptor_file_new(&eddc);
262 printf("EEEK! eet_data_descriptor_file_new() failed\n");
265 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "config_version", config_version, EET_T_INT);
266 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "engine", engine, EET_T_INT);
267 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "thumbscroll_enable", thumbscroll_enable, EET_T_INT);
268 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "thumbscroll_threshhold", thumbscroll_threshhold, EET_T_INT);
269 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "thumbscroll_momentum_threshhold", thumbscroll_momentum_threshhold, EET_T_DOUBLE);
270 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "thumbscroll_friction", thumbscroll_friction, EET_T_DOUBLE);
271 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "thumbscroll_bounce_friction", thumbscroll_bounce_friction, EET_T_DOUBLE);
272 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "page_scroll_friction", page_scroll_friction, EET_T_DOUBLE);
273 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "bring_in_scroll_friction", bring_in_scroll_friction, EET_T_DOUBLE);
274 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "zoom_friction", zoom_friction, EET_T_DOUBLE);
275 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "thumbscroll_bounce_enable", thumbscroll_bounce_enable, EET_T_INT);
276 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "scale", scale, EET_T_DOUBLE);
277 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "bgpixmap", bgpixmap, EET_T_INT);
278 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "compositing", compositing, EET_T_INT);
279 // EET_DATA_DESCRIPTOR_ADD_LIST(_config_edd, Elm_Config, "font_dirs", font_dirs, sub_edd);
280 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "font_hinting", font_hinting, EET_T_INT);
281 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "image_cache", image_cache, EET_T_INT);
282 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "font_cache", font_cache, EET_T_INT);
283 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "finger_size", finger_size, EET_T_INT);
284 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "fps", fps, EET_T_DOUBLE);
285 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "theme", theme, EET_T_STRING);
286 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "modules", modules, EET_T_STRING);
287 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "password_show_last_character", password_show_last_character, EET_T_INT);
288 EET_DATA_DESCRIPTOR_ADD_BASIC(_config_edd, Elm_Config, "longpress_timeout", longpress_timeout, EET_T_DOUBLE);
294 if (!_config_edd) return;
295 eet_data_descriptor_free(_config_edd);
303 const char *home = NULL;
304 char buf[PATH_MAX], *p, *s;
307 _elm_profile = strdup("default");
309 // if env var - use profile without question
310 s = getenv("ELM_PROFILE");
314 _elm_profile = strdup(s);
318 home = getenv("HOME");
319 if (!home) home = "/";
322 snprintf(buf, sizeof(buf), "%s/.elementary/config/profile.cfg", home);
323 ef = eet_open(buf, EET_FILE_MODE_READ);
326 p = eet_read(ef, "config", &len);
330 _elm_profile = malloc(len + 1);
331 memcpy(_elm_profile, p, len);
332 _elm_profile[len] = 0;
341 snprintf(buf, sizeof(buf), "%s/config/profile.cfg", _elm_data_dir);
342 ef = eet_open(buf, EET_FILE_MODE_READ);
345 p = eet_read(ef, "config", &len);
349 _elm_profile = malloc(len + 1);
350 memcpy(_elm_profile, p, len);
351 _elm_profile[len] = 0;
363 if (!_elm_config) return;
364 EINA_LIST_FREE(_elm_config->font_dirs, fontdir)
366 eina_stringshare_del(fontdir);
368 if (_elm_config->theme) eina_stringshare_del(_elm_config->theme);
369 if (_elm_config->modules) eina_stringshare_del(_elm_config->modules);
377 _elm_theme_parse(NULL, _elm_config->theme);
378 ecore_animator_frametime_set(1.0 / _elm_config->fps);
382 _config_sub_apply(void)
384 edje_frametime_set(1.0 / _elm_config->fps);
385 edje_scale_set(_elm_config->scale);
386 if (_elm_config->modules) _elm_module_parse(_elm_config->modules);
387 edje_input_panel_enabled_set(_elm_config->input_panel_enable);
388 edje_autocapitalization_allow_set(_elm_config->autocapital_allow);
389 edje_autoperiod_allow_set(_elm_config->autoperiod_allow);
393 _config_user_load(void)
395 Elm_Config *cfg = NULL;
400 home = getenv("HOME");
401 if (!home) home = "";
403 snprintf(buf, sizeof(buf), "%s/.elementary/config/%s/base.cfg", home,
405 ef = eet_open(buf, EET_FILE_MODE_READ);
408 cfg = eet_data_read(ef, _config_edd, "config");
415 _config_system_load(void)
417 Elm_Config *cfg = NULL;
421 snprintf(buf, sizeof(buf), "%s/config/%s/base.cfg", _elm_data_dir,
423 ef = eet_open(buf, EET_FILE_MODE_READ);
426 cfg = eet_data_read(ef, _config_edd, "config");
436 _elm_config = _config_user_load();
442 if (_elm_config->config_version < ELM_CONFIG_VERSION)
447 /* no user config, fallback for system. No need to check version for
448 * this one, if it's not the right one, someone screwed up at the time
449 * of installing it */
450 _elm_config = _config_system_load();
451 if (_elm_config) return;
452 /* FIXME: config load could have failed because of a non-existent
453 * profile. Fallback to default before moving on */
455 // config load fail - defaults
456 /* XXX: do these make sense? Only if it's valid to install the lib
457 * without the config, but do we want that? */
458 _elm_config = ELM_NEW(Elm_Config);
459 _elm_config->config_version = ELM_CONFIG_VERSION;
460 _elm_config->engine = ELM_SOFTWARE_X11;
461 _elm_config->thumbscroll_enable = 1;
462 _elm_config->thumbscroll_threshhold = 24;
463 _elm_config->thumbscroll_momentum_threshhold = 100.0;
464 _elm_config->thumbscroll_friction = 1.0;
465 _elm_config->thumbscroll_bounce_friction = 0.5;
466 _elm_config->page_scroll_friction = 0.5;
467 _elm_config->bring_in_scroll_friction = 0.5;
468 _elm_config->zoom_friction = 0.5;
469 _elm_config->thumbscroll_bounce_enable = 1;
470 _elm_config->scale = 1.0;
471 _elm_config->bgpixmap = 0;
472 _elm_config->font_hinting = 2;
473 _elm_config->font_dirs = NULL;
474 _elm_config->image_cache = 4096;
475 _elm_config->font_cache = 512;
476 _elm_config->finger_size = 40;
477 _elm_config->compositing = 1;
478 _elm_config->fps = 60.0;
479 _elm_config->theme = eina_stringshare_add("default");
480 _elm_config->modules = NULL;
481 _elm_config->password_show_last_character = 0;
482 _elm_config->longpress_timeout = 1.0;
488 tcfg = _config_system_load();
493 #define IFCFG(v) if ((_elm_config->config_version & 0xffff) < (v)) {
494 #define IFCFGELSE } else {
496 #define COPYVAL(x) do {_elm_config->x = tcfg->x;} while(0)
497 #define COPYPTR(x) do {_elm_config->x = tcfg->x; tcfg->x = NULL; } while(0)
498 #define COPYSTR(x) COPYPTR(x)
500 /* we also need to update for property changes in the root window
501 * if needed, but that will be dependant on new properties added
502 * with each version */
504 /* nothing here, just an example */
518 /* after updating user config, we must save */
526 s = getenv("ELM_ENGINE");
529 if ((!strcasecmp(s, "x11")) ||
530 (!strcasecmp(s, "x")) ||
531 (!strcasecmp(s, "software-x11")) ||
532 (!strcasecmp(s, "software_x11")))
533 _elm_config->engine = ELM_SOFTWARE_X11;
534 else if ((!strcasecmp(s, "x11-16")) ||
535 (!strcasecmp(s, "x16")) ||
536 (!strcasecmp(s, "software-16-x11")) ||
537 (!strcasecmp(s, "software_16_x11")))
538 _elm_config->engine = ELM_SOFTWARE_16_X11;
539 else if ((!strcasecmp(s, "xrender")) ||
540 (!strcasecmp(s, "xr")) ||
541 (!strcasecmp(s, "xrender-x11")) ||
542 (!strcasecmp(s, "xrender_x11")))
543 _elm_config->engine = ELM_XRENDER_X11;
544 else if ((!strcasecmp(s, "fb")) ||
545 (!strcasecmp(s, "software-fb")) ||
546 (!strcasecmp(s, "software_fb")))
547 _elm_config->engine = ELM_SOFTWARE_FB;
548 else if ((!strcasecmp(s, "directfb")) ||
549 (!strcasecmp(s, "dfb")))
550 _elm_config->engine = ELM_SOFTWARE_DIRECTFB;
551 else if ((!strcasecmp(s, "sdl")) ||
552 (!strcasecmp(s, "software-sdl")) ||
553 (!strcasecmp(s, "software_sdl")))
554 _elm_config->engine = ELM_SOFTWARE_SDL;
555 else if ((!strcasecmp(s, "sdl-16")) ||
556 (!strcasecmp(s, "software-16-sdl")) ||
557 (!strcasecmp(s, "software_16_sdl")))
558 _elm_config->engine = ELM_SOFTWARE_16_SDL;
559 else if ((!strcasecmp(s, "opengl")) ||
560 (!strcasecmp(s, "gl")) ||
561 (!strcasecmp(s, "opengl-x11")) ||
562 (!strcasecmp(s, "opengl_x11")))
563 _elm_config->engine = ELM_OPENGL_X11;
564 else if ((!strcasecmp(s, "opengl-sdl")) ||
565 (!strcasecmp(s, "opengl_sdl")) ||
566 (!strcasecmp(s, "gl-sdl")) ||
567 (!strcasecmp(s, "gl_sdl")))
568 _elm_config->engine = ELM_OPENGL_SDL;
569 else if ((!strcasecmp(s, "gdi")) ||
570 (!strcasecmp(s, "software-gdi")) ||
571 (!strcasecmp(s, "software_gdi")))
572 _elm_config->engine = ELM_SOFTWARE_WIN32;
573 else if ((!strcasecmp(s, "wince-gdi")) ||
574 (!strcasecmp(s, "software-16-wince-gdi")) ||
575 (!strcasecmp(s, "software_16_wince_gdi")))
576 _elm_config->engine = ELM_SOFTWARE_16_WINCE;
579 s = getenv("ELM_THUMBSCROLL_ENABLE");
580 if (s) _elm_config->thumbscroll_enable = atoi(s);
581 s = getenv("ELM_THUMBSCROLL_THRESHOLD");
582 if (s) _elm_config->thumbscroll_threshhold = atoi(s);
583 // FIXME: floatformat locale issues here 1.0 vs 1,0 - should just be 1.0
584 s = getenv("ELM_THUMBSCROLL_MOMENTUM_THRESHOLD");
585 if (s) _elm_config->thumbscroll_momentum_threshhold = atof(s);
586 s = getenv("ELM_THUMBSCROLL_FRICTION");
587 if (s) _elm_config->thumbscroll_friction = atof(s);
588 s = getenv("ELM_PAGE_SCROLL_FRICTION");
589 if (s) _elm_config->page_scroll_friction = atof(s);
590 s = getenv("ELM_BRING_IN_SCROLL_FRICTION");
591 if (s) _elm_config->bring_in_scroll_friction = atof(s);
592 s = getenv("ELM_ZOOM_FRICTION");
593 if (s) _elm_config->zoom_friction = atof(s);
595 s = getenv("ELM_THEME");
596 if (s) eina_stringshare_replace(&_elm_config->theme, s);
598 s = getenv("ELM_FONT_HINTING");
601 if (!strcasecmp(s, "none")) _elm_config->font_hinting = 0;
602 else if (!strcasecmp(s, "auto")) _elm_config->font_hinting = 1;
603 else if (!strcasecmp(s, "bytecode")) _elm_config->font_hinting = 2;
606 s = getenv("ELM_FONT_PATH");
612 EINA_LIST_FREE(_elm_config->font_dirs, p)
614 eina_stringshare_del(p);
617 buf2 = alloca(strlen(s) + 1);
622 if ((*p == ':') || (*p == 0))
627 strncpy(buf2, pp, len);
629 _elm_config->font_dirs =
630 eina_list_append(_elm_config->font_dirs,
631 eina_stringshare_add(buf2));
644 s = getenv("ELM_IMAGE_CACHE");
645 if (s) _elm_config->image_cache = atoi(s);
647 s = getenv("ELM_FONT_CACHE");
648 if (s) _elm_config->font_cache = atoi(s);
650 s = getenv("ELM_SCALE");
651 if (s) _elm_config->scale = atof(s);
653 _elm_config->finger_size = (double)_elm_config->finger_size * _elm_config->scale;
654 s = getenv("ELM_FINGER_SIZE");
655 if (s) _elm_config->finger_size = atoi(s);
657 s = getenv("ELM_PASSWORD_SHOW_LAST_CHARACTER");
658 if (s) _elm_config->password_show_last_character = atoi(s);
660 s = getenv("ELM_FPS");
661 if (s) _elm_config->fps = atof(s);
662 if (_elm_config->fps < 1.0) _elm_config->fps = 1.0;
664 s = getenv("ELM_MODULES");
665 if (s) eina_stringshare_replace(&_elm_config->modules, s);
667 s = getenv("ELM_INPUT_PANEL");
668 if (s) _elm_config->input_panel_enable = atoi(s);
670 s = getenv("ELM_LONGPRESS_TIMEOUT");
671 if (s) _elm_config->longpress_timeout = atof(s);
672 if (_elm_config->longpress_timeout < 0.0) _elm_config->longpress_timeout = 0.0;
676 _elm_config_init(void)
684 _elm_config_sub_init(void)
688 if ((_elm_config->engine == ELM_SOFTWARE_X11) ||
689 (_elm_config->engine == ELM_SOFTWARE_16_X11) ||
690 (_elm_config->engine == ELM_XRENDER_X11) ||
691 (_elm_config->engine == ELM_OPENGL_X11))
693 #ifdef HAVE_ELEMENTARY_X
694 unsigned int val = 1000;
696 if (!ecore_x_init(NULL))
698 ERR("Cannot connect to X11 display. check $DISPLAY variable");
701 _root_1st = ecore_x_window_root_first_get();
703 if (!ecore_x_screen_is_composited(0))
704 _elm_config->compositing = 0;
706 ecore_x_atoms_get(_atom_names, ATOM_COUNT, _atom);
707 ecore_x_event_mask_set(_root_1st,
708 ECORE_X_EVENT_MASK_WINDOW_PROPERTY);
709 _prop_change_handler = ecore_event_handler_add
710 (ECORE_X_EVENT_WINDOW_PROPERTY, _prop_change, NULL);
711 if (!getenv("ELM_SCALE"))
713 if (ecore_x_window_prop_card32_get(_root_1st,
719 _elm_config->scale = (double)val / 1000.0;
720 // FIXME: hack until e export finger size too
721 if (!getenv("ELM_FINGER_SIZE"))
722 _elm_config->finger_size = 40.0 * _elm_config->scale;
723 edje_scale_set(_elm_config->scale);
727 if (!getenv("ELM_FINGER_SIZE"))
729 if (ecore_x_window_prop_card32_get(_root_1st,
730 _atom[ATOM_E_FINGER_SIZE],
735 _elm_config->finger_size = val;
739 if (!getenv("ELM_THEME"))
743 s = ecore_x_window_prop_string_get(_root_1st,
744 _atom[ATOM_E_THEME]);
747 eina_stringshare_replace(&_elm_config->theme, s);
748 _elm_theme_parse(NULL, s);
752 if (!getenv("ELM_PROFILE"))
756 s = ecore_x_window_prop_string_get(_root_1st,
757 _atom[ATOM_E_PROFILE]);
764 if (strcmp(_elm_profile, s)) changed = 1;
768 if (changed) _prop_config_get();
771 if (!getenv("ELM_INPUT_PANEL"))
773 if (ecore_x_window_prop_card32_get(_root_1st,
774 _atom[ATOM_E_INPUT_PANEL],
779 _elm_config->input_panel_enable = val;
780 edje_input_panel_enabled_set(_elm_config->input_panel_enable);
784 if (ecore_x_window_prop_card32_get(_root_1st,
785 _atom[ATOM_E_AUTOCAPITAL_ALLOW],
790 _elm_config->autocapital_allow = val;
791 edje_autocapitalization_allow_set(_elm_config->autocapital_allow);
794 if (ecore_x_window_prop_card32_get(_root_1st,
795 _atom[ATOM_E_AUTOPERIOD_ALLOW],
800 _elm_config->autoperiod_allow = val;
801 edje_autoperiod_allow_set(_elm_config->autoperiod_allow);
810 _elm_config_shutdown(void)
812 if ((_elm_config->engine == ELM_SOFTWARE_X11) ||
813 (_elm_config->engine == ELM_SOFTWARE_16_X11) ||
814 (_elm_config->engine == ELM_XRENDER_X11) ||
815 (_elm_config->engine == ELM_OPENGL_X11) ||
816 (_elm_config->engine == ELM_SOFTWARE_SDL) ||
817 (_elm_config->engine == ELM_SOFTWARE_16_SDL) ||
818 (_elm_config->engine == ELM_OPENGL_SDL) ||
819 (_elm_config->engine == ELM_SOFTWARE_WIN32) ||
820 (_elm_config->engine == ELM_SOFTWARE_16_WINCE))
822 #ifdef HAVE_ELEMENTARY_X
823 ecore_event_handler_del(_prop_change_handler);
824 _prop_change_handler = NULL;
836 /* vim:set ts=8 sw=3 sts=3 expandtab cino=>5n-2f0^-2{2(0W1st0 :*/