elementary : indentation and some small changes
authorWooHyun Jung <woohyun0705@gmail.com>
Fri, 26 Aug 2011 02:02:15 +0000 (02:02 +0000)
committerWooHyun Jung <woohyun0705@gmail.com>
Fri, 26 Aug 2011 02:02:15 +0000 (02:02 +0000)
SVN revision: 62845

src/lib/elm_button.c
src/lib/elm_check.c

index 0aa634c..9ba29b1 100644 (file)
@@ -325,17 +325,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;
 }
 
index d74986c..5994ac2 100644 (file)
@@ -255,10 +255,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 *
@@ -268,9 +268,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"));
 }