[src/lib/elm_button.c] Repositioning the default focus behavior and setting the defau...
authorRajeev Ranjan <rajeev.r@samsung.com>
Tue, 12 Oct 2010 03:36:36 +0000 (12:36 +0900)
committerRajeev Ranjan <rajeev.r@samsung.com>
Tue, 12 Oct 2010 03:36:36 +0000 (12:36 +0900)
src/lib/elm_button.c

index 0face08..c915b26 100644 (file)
@@ -315,13 +315,13 @@ elm_button_add(Evas_Object *parent)
    obj = elm_widget_add(e);
    ELM_SET_WIDTYPE(widtype, "button");
    elm_widget_type_set(obj, "button");
+   elm_widget_can_focus_set(obj, EINA_FALSE);
    elm_widget_sub_object_add(parent, obj);
    elm_widget_on_focus_hook_set( obj, _on_focus_hook, NULL );
    elm_widget_data_set(obj, wd);
    elm_widget_del_hook_set(obj, _del_hook);
    elm_widget_theme_hook_set(obj, _theme_hook);
    elm_widget_disable_hook_set(obj, _disable_hook);
-   elm_widget_can_focus_set(obj, EINA_TRUE);
 
    wd->btn = edje_object_add(e);
    _elm_theme_object_set(obj, wd->btn, "button", "base", "default");