hermet pushed a commit to branch master.
commit 95920b3ac79d2420c8031a7c30b17f8f427ec68c
Author: ChunEon Park <[email protected]>
Date: Thu May 2 20:25:42 2013 +0900
ctxpopup - Don't be dead even if a ctxpopup item callback function is null.
---
ChangeLog | 4 ++++
NEWS | 1 +
src/lib/elc_ctxpopup.c | 1 +
3 files changed, 6 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 2dbd1d0..7838231 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1323,3 +1323,7 @@
2012-05-02 WooHyun Jung
* elm_entry_filter_accept_set function now can recognize tags.
+
+2012-05-02 ChunEon Park (Hermet)
+
+ * Don't be dead even if a ctxpopup item callback function is null.
diff --git a/NEWS b/NEWS
index 5d53d15..1186efe 100644
--- a/NEWS
+++ b/NEWS
@@ -222,6 +222,7 @@ Fixes:
* Fix the toolbar item clipped problem on reordering items.
* Fix elm_object_cursor_theme_search_enabled_set to do as it's name
described.
* Elm_entry_filter_accept_set function now can recognize tags.
+ * Don't be dead even if a ctxpopup item callback is null.
Removals:
diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c
index a8bea71..af1acd0 100644
--- a/src/lib/elc_ctxpopup.c
+++ b/src/lib/elc_ctxpopup.c
@@ -1327,6 +1327,7 @@ static void
_item_wrap_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info
__UNUSED__)
{
Elm_Ctxpopup_Item *item = data;
+ if (!item->wcb.org_func_cb) return;
item->wcb.org_func_cb((void *)item->wcb.org_data, item->wcb.cobj, item);
}
--
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1