[elm_softkey.c] Not removing the signal raising code yet however will need to
authorRajeev Ranjan <rajeev.r@samsung.com>
Mon, 12 Jul 2010 07:45:32 +0000 (16:45 +0900)
committerRajeev Ranjan <rajeev.r@samsung.com>
Mon, 12 Jul 2010 07:45:32 +0000 (16:45 +0900)
remove this as callback is sufficient.

src/lib/elm_softkey.c

index b50a256..b373629 100644 (file)
@@ -526,17 +526,16 @@ static void _softkey_up_cb(void *data, Evas_Object *obj, const char *emission, c
 
        Elm_Softkey_Item *it = (Elm_Softkey_Item *) data;
        elm_softkey_panel_close(it->obj);
-       evas_object_smart_callback_call(it->obj, "clicked", it);
-
        if (it->icon)
        {
-          edj = elm_layout_edje_get(it->icon);
-          if (!edj)
-               return;
-          edje_object_signal_emit(edj, "elm,state,unselected", "elm");
+            edj = elm_layout_edje_get(it->icon);
+            if (!edj)
+               return;
+            edje_object_signal_emit(edj, "elm,state,unselected", "elm");
        }
        if (it->func)
-               it->func((void *) (it->data), it->obj, it);
+               it->func((void *) (it->data), it->obj, it);
+       evas_object_smart_callback_call(it->obj, "clicked", it);
 }
 
 static void _softkey_down_cb(void *data, Evas_Object *obj, const char *emission, const char *source)
@@ -570,9 +569,9 @@ static void _panel_up_cb(void *data, Evas *e, Evas_Object *obj, void *event_info
        }
 
        elm_softkey_panel_close(it->obj);
-       evas_object_smart_callback_call(it->obj, "clicked", it);
        if (it->func)
                it->func((void *) (it->data), it->obj, it);
+       evas_object_smart_callback_call(it->obj, "clicked", it);
 }
 
 static void _panel_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)