forked from enlightenment/efl
From: Hyoyoung Chang <hyoyoung@gmail.com>
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. SVN revision: 67189
This commit is contained in:
parent
1ab70cc671
commit
d3c51a78f5
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue