forked from enlightenment/efl
elementary/config - add elm_config_all_flush
SVN revision: 67969
This commit is contained in:
parent
991bed89dc
commit
79d3a3bef4
|
@ -1405,6 +1405,20 @@ elm_mirrored_set(Eina_Bool mirrored)
|
|||
_elm_rescale();
|
||||
}
|
||||
|
||||
EAPI void
|
||||
elm_config_all_flush(void)
|
||||
{
|
||||
#ifdef HAVE_ELEMENTARY_X
|
||||
if (_prop_all_update_timer) ecore_timer_del(_prop_all_update_timer);
|
||||
_prop_all_update_timer = ecore_timer_add(0.1, _prop_all_update_cb, NULL);
|
||||
//FIXME: below two lines looks unnecessary.
|
||||
_prop_config_set();
|
||||
ecore_x_window_prop_string_set(_root_1st, _atom[ATOM_E_PROFILE],
|
||||
_elm_profile);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
_translation_init()
|
||||
{
|
||||
|
@ -1528,18 +1542,6 @@ _elm_config_engine_set(const char *engine)
|
|||
_elm_config->engine = eina_stringshare_add(engine);
|
||||
}
|
||||
|
||||
void
|
||||
_elm_config_all_update(void)
|
||||
{
|
||||
#ifdef HAVE_ELEMENTARY_X
|
||||
if (_prop_all_update_timer) ecore_timer_del(_prop_all_update_timer);
|
||||
_prop_all_update_timer = ecore_timer_add(0.1, _prop_all_update_cb, NULL);
|
||||
_prop_config_set();
|
||||
ecore_x_window_prop_string_set(_root_1st, _atom[ATOM_E_PROFILE],
|
||||
_elm_profile);
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
_elm_config_profile_set(const char *profile)
|
||||
{
|
||||
|
|
|
@ -40,6 +40,38 @@ EAPI Eina_Bool elm_config_save(void);
|
|||
*/
|
||||
EAPI void elm_config_reload(void);
|
||||
|
||||
/**
|
||||
* Flush all config settings then apply those settings to all applications
|
||||
* using elementary on the current display.
|
||||
* Following functions will update the config settings
|
||||
* @li elm_scale_set()
|
||||
* @li elm_finger_size_set()
|
||||
* @li elm_profile_set()
|
||||
* @li elm_font_overlay_set()
|
||||
* @li elm_cache_flush_interval_set()
|
||||
* @li elm_cache_flush_enabled_set()
|
||||
* @li elm_font_cache_set()
|
||||
* @li elm_image_cache_set()
|
||||
* @li elm_edje_file_cache_set()
|
||||
* @li elm_edje_collection_cache_set()
|
||||
* @li elm_scroll_bounce_enabled_set()
|
||||
* @li elm_scroll_bounce_friction_set()
|
||||
* @li elm_scroll_page_scroll_friction_set()
|
||||
* @li elm_scroll_bring_in_scroll_friction_set()
|
||||
* @li elm_scroll_zoom_friction_set()
|
||||
* @li elm_scroll_thumbscroll_enabled_set()
|
||||
* @li elm_scroll_thumbscroll_threshold_set()
|
||||
* @li elm_scroll_thumbscroll_momentum_threshold_set()
|
||||
* @li elm_scroll_thumbscroll_friction_set()
|
||||
* @li elm_scroll_thumbscroll_border_friction_set()
|
||||
* @li elm_scroll_thumbscroll_sensitivity_friction_set()
|
||||
* @li elm_theme_set()
|
||||
*
|
||||
* @ingroup Config
|
||||
*
|
||||
*/
|
||||
EAPI void elm_config_all_flush(void);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
|
|
@ -1034,7 +1034,7 @@ EAPI void
|
|||
elm_scale_all_set(double scale)
|
||||
{
|
||||
elm_scale_set(scale);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
|
@ -1152,7 +1152,7 @@ EAPI void
|
|||
elm_profile_all_set(const char *profile)
|
||||
{
|
||||
_elm_config_profile_set(profile);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI const char *
|
||||
|
@ -1217,7 +1217,7 @@ EAPI void
|
|||
elm_font_overlay_all_apply(void)
|
||||
{
|
||||
elm_font_overlay_apply();
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI Elm_Font_Properties *
|
||||
|
@ -1318,7 +1318,7 @@ EAPI void
|
|||
elm_finger_size_all_set(Evas_Coord size)
|
||||
{
|
||||
elm_finger_size_set(size);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI void
|
||||
|
@ -1370,7 +1370,7 @@ EAPI void
|
|||
elm_cache_flush_interval_all_set(int size)
|
||||
{
|
||||
elm_cache_flush_interval_set(size);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
|
@ -1393,7 +1393,7 @@ EAPI void
|
|||
elm_cache_flush_enabled_all_set(Eina_Bool enabled)
|
||||
{
|
||||
elm_cache_flush_enabled_set(enabled);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI int
|
||||
|
@ -1415,7 +1415,7 @@ EAPI void
|
|||
elm_font_cache_all_set(int size)
|
||||
{
|
||||
elm_font_cache_set(size);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI int
|
||||
|
@ -1437,7 +1437,7 @@ EAPI void
|
|||
elm_image_cache_all_set(int size)
|
||||
{
|
||||
elm_image_cache_set(size);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI int
|
||||
|
@ -1459,7 +1459,7 @@ EAPI void
|
|||
elm_edje_file_cache_all_set(int size)
|
||||
{
|
||||
elm_edje_file_cache_set(size);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI int
|
||||
|
@ -1481,7 +1481,7 @@ EAPI void
|
|||
elm_edje_collection_cache_all_set(int size)
|
||||
{
|
||||
elm_edje_collection_cache_set(size);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
|
@ -1651,7 +1651,7 @@ EAPI void
|
|||
elm_scroll_bounce_enabled_all_set(Eina_Bool enabled)
|
||||
{
|
||||
elm_scroll_bounce_enabled_set(enabled);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI double
|
||||
|
@ -1670,7 +1670,7 @@ EAPI void
|
|||
elm_scroll_bounce_friction_all_set(double friction)
|
||||
{
|
||||
elm_scroll_bounce_friction_set(friction);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI double
|
||||
|
@ -1689,7 +1689,7 @@ EAPI void
|
|||
elm_scroll_page_scroll_friction_all_set(double friction)
|
||||
{
|
||||
elm_scroll_page_scroll_friction_set(friction);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI double
|
||||
|
@ -1708,7 +1708,7 @@ EAPI void
|
|||
elm_scroll_bring_in_scroll_friction_all_set(double friction)
|
||||
{
|
||||
elm_scroll_bring_in_scroll_friction_set(friction);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI double
|
||||
|
@ -1727,7 +1727,7 @@ EAPI void
|
|||
elm_scroll_zoom_friction_all_set(double friction)
|
||||
{
|
||||
elm_scroll_zoom_friction_set(friction);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
|
@ -1746,7 +1746,7 @@ EAPI void
|
|||
elm_scroll_thumbscroll_enabled_all_set(Eina_Bool enabled)
|
||||
{
|
||||
elm_scroll_thumbscroll_enabled_set(enabled);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI unsigned int
|
||||
|
@ -1765,7 +1765,7 @@ EAPI void
|
|||
elm_scroll_thumbscroll_threshold_all_set(unsigned int threshold)
|
||||
{
|
||||
elm_scroll_thumbscroll_threshold_set(threshold);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI double
|
||||
|
@ -1784,7 +1784,7 @@ EAPI void
|
|||
elm_scroll_thumbscroll_momentum_threshold_all_set(double threshold)
|
||||
{
|
||||
elm_scroll_thumbscroll_momentum_threshold_set(threshold);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI double
|
||||
|
@ -1803,7 +1803,7 @@ EAPI void
|
|||
elm_scroll_thumbscroll_friction_all_set(double friction)
|
||||
{
|
||||
elm_scroll_thumbscroll_friction_set(friction);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI double
|
||||
|
@ -1824,7 +1824,7 @@ EAPI void
|
|||
elm_scroll_thumbscroll_border_friction_all_set(double friction)
|
||||
{
|
||||
elm_scroll_thumbscroll_border_friction_set(friction);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI double
|
||||
|
@ -1845,7 +1845,7 @@ EAPI void
|
|||
elm_scroll_thumbscroll_sensitivity_friction_all_set(double friction)
|
||||
{
|
||||
elm_scroll_thumbscroll_sensitivity_friction_set(friction);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI void
|
||||
|
|
|
@ -599,7 +599,7 @@ elm_theme_all_set(const char *theme)
|
|||
{
|
||||
eina_stringshare_replace(&_elm_config->theme, theme);
|
||||
elm_theme_set(NULL, theme);
|
||||
_elm_config_all_update();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
EAPI Eina_List *
|
||||
|
|
Loading…
Reference in New Issue