summaryrefslogtreecommitdiff
path: root/src/lib/elementary/els_cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/els_cursor.c')
-rw-r--r--src/lib/elementary/els_cursor.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/elementary/els_cursor.c b/src/lib/elementary/els_cursor.c
index 8b5ee7a..cf4bc76 100644
--- a/src/lib/elementary/els_cursor.c
+++ b/src/lib/elementary/els_cursor.c
@@ -289,8 +289,8 @@ _elm_cursor_obj_add(Evas_Object *obj, Elm_Cursor *cur)
289 edje_object_freeze(cur->obj); 289 edje_object_freeze(cur->obj);
290 edje_object_update_hints_set(cur->obj, 1); 290 edje_object_update_hints_set(cur->obj, 1);
291 291
292 if (!elm_widget_theme_object_set(obj, cur->obj, "cursor", cur->cursor_name, 292 if (elm_widget_theme_object_set(obj, cur->obj, "cursor", cur->cursor_name,
293 cur->style ? cur->style : "default")) 293 cur->style ? cur->style : "default") == EFL_UI_THEME_APPLY_ERROR_GENERIC)
294 { 294 {
295 ELM_SAFE_FREE(cur->obj, evas_object_del); 295 ELM_SAFE_FREE(cur->obj, evas_object_del);
296 return EINA_FALSE; 296 return EINA_FALSE;
@@ -779,8 +779,8 @@ elm_object_sub_cursor_style_set(Evas_Object *obj, const char *style)
779 } 779 }
780 else 780 else
781 { 781 {
782 if (!elm_widget_theme_object_set(obj, cur->obj, "cursor", cur->cursor_name, 782 if (elm_widget_theme_object_set(obj, cur->obj, "cursor", cur->cursor_name,
783 style)) 783 style) == EFL_UI_THEME_APPLY_ERROR_GENERIC)
784 { 784 {
785 ERR("Could not apply the theme to the cursor style=%s", style); 785 ERR("Could not apply the theme to the cursor style=%s", style);
786 return EINA_FALSE; 786 return EINA_FALSE;
@@ -820,8 +820,8 @@ void
820elm_cursor_theme(Elm_Cursor *cur) 820elm_cursor_theme(Elm_Cursor *cur)
821{ 821{
822 if ((!cur) || (!cur->obj)) return; 822 if ((!cur) || (!cur->obj)) return;
823 if (!elm_widget_theme_object_set(cur->owner, cur->obj, "cursor", 823 if (elm_widget_theme_object_set(cur->owner, cur->obj, "cursor",
824 cur->cursor_name, cur->style)) 824 cur->cursor_name, cur->style) == EFL_UI_THEME_APPLY_ERROR_GENERIC)
825 ERR("Could not apply the theme to the cursor style=%s", cur->style); 825 ERR("Could not apply the theme to the cursor style=%s", cur->style);
826 else 826 else
827 _elm_cursor_set_hot_spots(cur); 827 _elm_cursor_set_hot_spots(cur);