seoz pushed a commit to branch master.
commit e304f479a7a1bc109d1f118a52e8f58101057039
Author: Daniel Juyung Seo <[email protected]>
Date: Tue Jul 23 06:11:30 2013 +0900
elc_fileselector.c: check null for part name and set the label for another
part as well.
---
src/lib/elc_fileselector.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/lib/elc_fileselector.c b/src/lib/elc_fileselector.c
index 4701574..8d951af 100644
--- a/src/lib/elc_fileselector.c
+++ b/src/lib/elc_fileselector.c
@@ -1425,17 +1425,24 @@ _elm_fileselector_smart_text_set(Eo *obj EINA_UNUSED,
void *_pd, va_list *list)
const char *label = va_arg(*list, const char *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
+ Eina_Bool int_ret = EINA_FALSE;
+
+ if (!part) return;
if (sd->ok_button && !strcmp(part, "ok"))
{
elm_object_text_set(sd->ok_button, label);
- if (ret) *ret = EINA_TRUE;
+ int_ret = EINA_TRUE;
}
else if (sd->cancel_button && !strcmp(part, "cancel"))
{
elm_object_text_set(sd->cancel_button, label);
- if (ret) *ret = EINA_TRUE;
+ int_ret = EINA_TRUE;
}
+ else
+ eo_do_super(obj, MY_CLASS, elm_obj_layout_text_set(part, label,
&int_ret));
+
+ if (ret) *ret = int_ret;
}
static void
--
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk