hermet pushed a commit to branch master.
commit 9de8f41a8d30abc7a364ce16bdfbe38f5ca2d02a
Author: ChunEon Park <[email protected]>
Date: Mon Jun 24 09:54:16 2013 +0900
elementary/ctxpopup - more clean code.
---
src/lib/elc_ctxpopup.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c
index 0717133..a84565b 100644
--- a/src/lib/elc_ctxpopup.c
+++ b/src/lib/elc_ctxpopup.c
@@ -1399,14 +1399,9 @@ _item_append(Eo *obj, void *_pd, va_list *list)
{
//The first item is appended.
sd->list = elm_list_add(obj);
- if (sd->list)
- {
- if (!strncmp(elm_object_style_get(obj), "default",
- strlen("default")))
- elm_object_style_set(sd->list, "ctxpopup");
- else
- elm_object_style_set(sd->list, elm_object_style_get(obj));
- }
+ if (!strncmp(elm_object_style_get(obj), "default", strlen("default")))
+ elm_object_style_set(sd->list, "ctxpopup");
+ else elm_object_style_set(sd->list, elm_object_style_get(obj));
elm_list_mode_set(sd->list, ELM_LIST_EXPAND);
elm_list_horizontal_set(sd->list, sd->horizontal);
evas_object_event_callback_add
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev