hermet pushed a commit to branch master.

commit eec3508d9fa6985b41438fa8502632446442c1d3
Author: ChunEon Park <[email protected]>
Date:   Sun Jun 23 02:23:23 2013 +0900

    elementary/ctxpopup - apply current ctxpopup style to the internal list.
---
 ChangeLog              | 4 ++++
 NEWS                   | 1 +
 src/lib/elc_ctxpopup.c | 8 ++++++++
 3 files changed, 13 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 4ddbc67..58b1f79 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1447,3 +1447,7 @@
 2013-06-22 ChunEon Park (Hermet)
 
         * Block mouse events when the ctxpopup on dismiss.
+
+2013-06-23 ChunEon Park (Hermet)
+
+        * Apply current ctxpopup style to the list in the ctxpopup.
diff --git a/NEWS b/NEWS
index 79336ff..50a252d 100644
--- a/NEWS
+++ b/NEWS
@@ -260,6 +260,7 @@ Removals:
    * Deprecate elm_object_domain_translatable_text_part_set(), 
elm_object_translatable_text_part_get().
    * Deprecate elm_web_uri_set(), elm_web_uri_get() and "uri,changed" signal 
for web, web2.
    * Naviframe: Dont' be popped if the event is freezed and popping is going 
on.
+   * Ctxpopup: Apply current ctxpopup style to the list.
 
 Changes since Elementary 1.0.0:
 -------------------------
diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c
index 0a6709a..0717133 100644
--- a/src/lib/elc_ctxpopup.c
+++ b/src/lib/elc_ctxpopup.c
@@ -1399,6 +1399,14 @@ _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));
+          }
         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

Reply via email to