From 79023cda9ad96473c0458f33934669a10da98733 Mon Sep 17 00:00:00 2001 From: discomfitor Date: Fri, 13 Jan 2012 23:43:17 +0000 Subject: [PATCH] From: Hyoyoung Chang Subject: [E-devel] [patch] elm_layout - set default style to new cursor obj Date: Thu, 12 Jan 2012 17:29:39 +0900 Dear all. I made a small patch to add default style to new cursor obj. Normally it's not useful but sometimes _part_cursor_part_apply() is needed. Also duplicated layout setting is removed in cursor testing at elementary_test. Thanks. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@67189 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/bin/test_cursor.c | 1 - src/lib/elm_layout.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/test_cursor.c b/src/bin/test_cursor.c index 3b3768d..7233068 100644 --- a/src/bin/test_cursor.c +++ b/src/bin/test_cursor.c @@ -441,7 +441,6 @@ test_cursor4(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf evas_object_size_hint_align_set(ly, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_layout_part_cursor_set(ly, "top-left", ELM_CURSOR_CROSS); elm_layout_part_cursor_set(ly, "bottom-left", ELM_CURSOR_PIRATE); - elm_layout_file_set(ly, buf, "test/layout/parts"); elm_box_pack_end(bx, ly); evas_object_show(ly); diff --git a/src/lib/elm_layout.c b/src/lib/elm_layout.c index 592583f..acee0da 100644 --- a/src/lib/elm_layout.c +++ b/src/lib/elm_layout.c @@ -873,6 +873,7 @@ elm_layout_part_cursor_set(Evas_Object *obj, const char *part_name, const char * pc = calloc(1, sizeof(*pc)); pc->part = eina_stringshare_add(part_name); pc->cursor = eina_stringshare_add(cursor); + pc->style = eina_stringshare_add("default"); wd->parts_cursors = eina_list_append(wd->parts_cursors, pc); } -- 2.7.4