elm_theme_free(th);
eina_stringshare_del(curr_theme);
- curr_engine = elm_engine_current_get();
+ curr_engine = elm_engine_get();
l_items = elm_list_items_get(evas_object_data_get(win, "engines_list"));
EINA_LIST_FOREACH(l_items, l, list_it)
{
li = data;
selection = elm_object_item_data_get(elm_list_selected_item_get(li));
- if (!strcmp(elm_engine_current_get(), selection))
+ if (!strcmp(elm_engine_get(), selection))
return;
elm_engine_set(selection);
if (!e_names)
return;
- cur_engine = elm_engine_current_get();
+ cur_engine = elm_engine_get();
EINA_LIST_FOREACH(e_names, l, engine)
{
evas_object_smart_callback_add(o, "clicked", _btn_click_cb, NULL);
- if (!strncmp(elm_engine_current_get(), "shot", 4))
+ if (!strncmp(elm_engine_get(), "shot", 4))
ecore_timer_add(0.1, _screenshot_hack_cb, o);
elm_run();
+/**
+ * @brief Get Elementary's rendering engine in use.
+ *
+ * @return The rendering engine's name
+ * @note there's no need to free the returned string, here.
+ *
+ * This gets the global rendering engine that is applied to all Elementary
+ * applications.
+ *
+ * @see elm_engine_set()
+ * @deprecated Use elm_engine_get() instead.
+ */
+EINA_DEPRECATED EAPI const char *elm_engine_current_get(void);
+
+
EINA_DEPRECATED EAPI void elm_gen_clear(Evas_Object *obj);
EINA_DEPRECATED EAPI void elm_gen_item_selected_set(Elm_Gen_Item *it, Eina_Bool selected);
EINA_DEPRECATED EAPI Eina_Bool elm_gen_item_selected_get(const Elm_Gen_Item *it);
*
* @see elm_engine_set()
*/
-// XXX: rename to elm_engine_get()
-EAPI const char *elm_engine_current_get(void);
+EAPI const char *elm_engine_get(void);
/**
* @brief Set Elementary's rendering engine for use.
EAPI const char *
elm_engine_current_get(void)
{
+ return elm_engine_get();
+}
+
+EAPI const char *
+elm_engine_get(void)
+{
return _elm_config->engine;
}