From 4b9f61b5b8c80c72bebfd3a5e8beb4e9877fec15 Mon Sep 17 00:00:00 2001 From: woohyun Date: Fri, 26 Aug 2011 02:02:15 +0000 Subject: [PATCH] elementary : indentation and some small changes git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@62845 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_button.c | 8 ++++---- src/lib/elm_check.c | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/lib/elm_button.c b/src/lib/elm_button.c index 99dd2c3..11a9a09 100644 --- a/src/lib/elm_button.c +++ b/src/lib/elm_button.c @@ -434,17 +434,17 @@ _elm_button_label_get(const Evas_Object *obj, const char *item) static char * _access_info_cb(void *data __UNUSED__, Evas_Object *obj, Elm_Widget_Item *item __UNUSED__) { - char *txt = (char *)elm_widget_access_info_get(obj); - if (!txt) txt = (char *)_elm_button_label_get(obj, NULL); + const char *txt = elm_widget_access_info_get(obj); + if (!txt) txt = _elm_button_label_get(obj, NULL); if (txt) return strdup(txt); - return txt; + return NULL; } static char * _access_state_cb(void *data __UNUSED__, Evas_Object *obj, Elm_Widget_Item *item __UNUSED__) { if (elm_widget_disabled_get(obj)) - return strdup(E_("State: Disabled")); + return strdup(E_("State: Disabled")); return NULL; } diff --git a/src/lib/elm_check.c b/src/lib/elm_check.c index 0f4af02..e1e6e50 100644 --- a/src/lib/elm_check.c +++ b/src/lib/elm_check.c @@ -333,10 +333,10 @@ _elm_check_label_get(const Evas_Object *obj, const char *item) static char * _access_info_cb(void *data __UNUSED__, Evas_Object *obj, Elm_Widget_Item *item __UNUSED__) { - char *txt = (char *)elm_widget_access_info_get(obj); - if (!txt) txt = (char *)_elm_check_label_get(obj, NULL); + const char *txt = elm_widget_access_info_get(obj); + if (!txt) txt = _elm_check_label_get(obj, NULL); if (txt) return strdup(txt); - return txt; + return NULL; } static char * @@ -346,9 +346,9 @@ _access_state_cb(void *data, Evas_Object *obj, Elm_Widget_Item *item __UNUSED__) Widget_Data *wd = elm_widget_data_get(o); if (!wd) return NULL; if (elm_widget_disabled_get(obj)) - return strdup(E_("State: Disabled")); + return strdup(E_("State: Disabled")); if (wd->state) - return strdup(E_("State: On")); + return strdup(E_("State: On")); return strdup(E_("State: Off")); } -- 2.7.4