- if (event->atom == _atom[ATOM_E_SCALE])
- {
- unsigned int val = 1000;
-
- if (ecore_x_window_prop_card32_get(event->win,
- event->atom,
- &val, 1) > 0)
- {
- double pscale;
-
- pscale = _elm_config->scale;
- if (val > 0) _elm_config->scale = (double)val / 1000.0;
- if (pscale != _elm_config->scale)
- {
- _elm_rescale();
- _elm_recache();
- }
- }
- }
- else if (event->atom == _atom[ATOM_E_FINGER_SIZE])
- {
- unsigned int val = 1000;
-
- if (ecore_x_window_prop_card32_get(event->win,
- event->atom,
- &val, 1) > 0)
- {
- int pfinger_size;
-
- pfinger_size = _elm_config->finger_size;
- _elm_config->finger_size = val;
- if (pfinger_size != _elm_config->finger_size)
- {
- _elm_rescale();
- _elm_recache();
- }
- }
- }
- else if (event->atom == _atom[ATOM_E_THEME])
- {
- char *val = NULL;
-
- val = ecore_x_window_prop_string_get(event->win,
- event->atom);
- eina_stringshare_replace(&_elm_config->theme, val);
- if (val)
- {
- _elm_theme_parse(NULL, val);
- free(val);
- _elm_rescale();
- _elm_recache();
- }
- }
- else if (event->atom == _atom[ATOM_E_PROFILE])
- {
- char *val = NULL;
-
- val = ecore_x_window_prop_string_get(event->win,
- event->atom);
- if (val)
- {
- int changed = 0;
-
- if (_elm_profile)
- {
- if (strcmp(_elm_profile, val)) changed = 1;
- free(_elm_profile);
- }
- _elm_profile = val;
- if (changed)
- {
- if (!_prop_config_get())
- {
- _config_free();
- _config_load();
- _config_apply();
- _elm_config_font_overlay_apply();
- _elm_rescale();
- }
- }
- }
- }
- else if (event->atom == _atom[ATOM_E_FONT_OVERLAY])
- {
- unsigned int val = 1000;
-
- if (ecore_x_window_prop_card32_get(event->win,
- event->atom,
- &val, 1) > 0)
- {
- _config_free();
- _config_load();
- _config_apply();
- _elm_config_font_overlay_apply();
- _elm_rescale();
- }
- }
- else if (event->atom == _atom[ATOM_E_CACHE_FLUSH_INTERVAL])
- {
- unsigned int val = 1000;
-
- if (ecore_x_window_prop_card32_get(event->win,
- event->atom,
- &val, 1) > 0)
- {
- int cache_flush_interval;
-
- cache_flush_interval = _elm_config->cache_flush_poll_interval;
- _elm_config->cache_flush_poll_interval = val;
- if (cache_flush_interval !=
- _elm_config->cache_flush_poll_interval)
- _elm_recache();
- }
- }
- else if (event->atom == _atom[ATOM_E_CACHE_FLUSH_ENABLE])
- {
- unsigned int val = 1000;
-
- if (ecore_x_window_prop_card32_get(event->win,
- event->atom,
- &val, 1) > 0)
- {
- _elm_config->cache_flush_enable = !!val;
- _elm_recache();
- }
- }
- else if (event->atom == _atom[ATOM_E_FONT_CACHE])
- {
- unsigned int val = 1000;