[Merge conflict resolved]
authorShilpa Singh <shilpa.singh@samsung.com>
Wed, 21 Sep 2011 06:41:54 +0000 (15:41 +0900)
committerShilpa Singh <shilpa.singh@samsung.com>
Fri, 23 Sep 2011 01:34:40 +0000 (10:34 +0900)
[elm_searchbar]: Gumi verification issue : when clicked on only search
icon, only cancel button is shown but edit field is not focussed.

Change-Id: I144b1f521ac41d96c8603be4f258e57dc2ac2aba

src/lib/elm_searchbar.c

index fff8e2c..5e73089 100644 (file)
@@ -72,11 +72,17 @@ _on_focus_hook(void *data __UNUSED__, Evas_Object *obj)
    Widget_Data *wd = elm_widget_data_get(obj);
    if (!wd || !wd->base)
       return;
-
-   if (elm_widget_focus_get(obj) && wd->cancel_btn_show_mode)
+   if (elm_widget_focus_get(obj))
      {
-        if (wd->cancel_btn_ani_flag) edje_object_signal_emit(wd->base, "CANCELIN", "PROG");
-        else edje_object_signal_emit(wd->base, "CANCELSHOW", "PROG");
+        /*FIXME: Sending clicked signal to focus editfield once open source is merged
+         * remove the below call
+         */
+        elm_object_signal_emit(wd->ef, "clicked", "elm");
+        if (wd->cancel_btn_show_mode)
+          {
+             if (wd->cancel_btn_ani_flag) edje_object_signal_emit(wd->base, "CANCELIN", "PROG");
+             else edje_object_signal_emit(wd->base, "CANCELSHOW", "PROG");
+          }
      }
    else
      {