parent
b4bfb8ecd3
commit
0f8ce855bc
|
@ -1111,8 +1111,9 @@ _theme_use(void *data __UNUSED__,
|
|||
|
||||
th = elm_object_theme_get(sample);
|
||||
defth = elm_theme_get(th);
|
||||
elm_theme_all_set(defth);
|
||||
elm_theme_set(NULL, defth);
|
||||
elm_config_save();
|
||||
elm_config_all_flush();
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -3112,7 +3113,7 @@ elm_main(int argc,
|
|||
}
|
||||
if (!interactive)
|
||||
{
|
||||
if (theme_set) elm_theme_all_set(theme_set);
|
||||
if (theme_set) elm_theme_set(NULL, theme_set);
|
||||
if (finger_size_set) elm_finger_size_set(atoi(finger_size_set));
|
||||
if (scale_set) elm_scale_set(atof(scale_set));
|
||||
|
||||
|
|
|
@ -4765,6 +4765,15 @@ EINA_DEPRECATED EAPI void elm_win_transparent_set(Evas_Object *
|
|||
*/
|
||||
EINA_DEPRECATED EAPI Eina_Bool elm_win_transparent_get(const Evas_Object *obj);
|
||||
|
||||
/**
|
||||
* Set the theme for all elementary using applications on the current display
|
||||
*
|
||||
* @param theme The name of the theme to use. Format same as the ELM_THEME
|
||||
* environment variable.
|
||||
* @deprecated Use elm_theme_set(NULL, theme); elm_config_all_flush(); instead.
|
||||
*/
|
||||
EINA_DEPRECATED EAPI void elm_theme_all_set(const char *theme);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
|
|
@ -594,7 +594,7 @@ elm_theme_full_flush(void)
|
|||
elm_theme_flush(&(theme_default));
|
||||
}
|
||||
|
||||
EAPI void
|
||||
EINA_DEPRECATED EAPI void
|
||||
elm_theme_all_set(const char *theme)
|
||||
{
|
||||
eina_stringshare_replace(&_elm_config->theme, theme);
|
||||
|
|
|
@ -301,15 +301,6 @@ EAPI void elm_theme_flush(Elm_Theme *th);
|
|||
*/
|
||||
EAPI void elm_theme_full_flush(void);
|
||||
|
||||
/**
|
||||
* Set the theme for all elementary using applications on the current display
|
||||
*
|
||||
* @param theme The name of the theme to use. Format same as the ELM_THEME
|
||||
* environment variable.
|
||||
*/
|
||||
//XXX: how about changing to elm_theme_set & elm_theme_flush & elm_config_all_flush?
|
||||
EAPI void elm_theme_all_set(const char *theme);
|
||||
|
||||
/**
|
||||
* Return a list of theme elements in the theme search path
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue