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
}
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));
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);
+
+/**
* @}
*/
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);
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
*
* @return A list of strings that are the theme element names.