elm_bubble: remove old api!
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>
Tue, 26 Sep 2017 23:13:09 +0000 (01:13 +0200)
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>
Tue, 10 Oct 2017 17:28:46 +0000 (19:28 +0200)
src/lib/elementary/elm_bubble.c
src/lib/elementary/elm_bubble.eo

index a39aa3d..b761cbc 100644 (file)
@@ -79,44 +79,6 @@ _on_mouse_up(void *data,
    efl_event_callback_legacy_call(data, EFL_UI_EVENT_CLICKED, NULL);
 }
 
-/* overriding layout's focus_next() in order to just cycle through the
- * content's tree */
-EOLIAN static Eina_Bool
-_elm_bubble_elm_widget_focus_next(Eo *obj, Elm_Bubble_Data *_pd EINA_UNUSED, Elm_Focus_Direction dir, Evas_Object **next, Elm_Object_Item **next_item)
-{
-   Evas_Object *content;
-   ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE);
-   if ((elm_widget_can_focus_get(obj)) &&
-       (!wd->focused))
-     {
-        // ACCESS
-        *next = (Evas_Object *)obj;
-        return EINA_TRUE;
-     }
-   else
-     {
-        content = elm_layout_content_get(obj, NULL);
-        if (!content) return EINA_FALSE;
-
-        /* attempt to follow focus cycle into sub-object */
-        return elm_obj_widget_focus_next_get(content, dir, next, next_item);
-     }
-}
-
-EOLIAN static Eina_Bool
-_elm_bubble_elm_widget_focus_direction(Eo *obj, Elm_Bubble_Data *_pd EINA_UNUSED, const Evas_Object *base, double degree, Evas_Object **direction, Elm_Object_Item **direction_item, double *weight)
-{
-   Evas_Object *content;
-
-   content = elm_layout_content_get(obj, NULL);
-
-   if (!content) return EINA_FALSE;
-
-   /* Try Focus cycle in subitem */
-   return elm_obj_widget_focus_direction_get
-            (content, base, degree, direction, direction_item, weight);
-}
-
 static Eina_Bool
 _elm_bubble_text_set(Eo *obj, Elm_Bubble_Data *_pd EINA_UNUSED, const char *part, const char *label)
 {
@@ -262,18 +224,6 @@ _elm_bubble_pos_get(Eo *obj EINA_UNUSED, Elm_Bubble_Data *sd)
    return sd->pos;
 }
 
-EOLIAN static Eina_Bool
-_elm_bubble_elm_widget_focus_next_manager_is(Eo *obj EINA_UNUSED, Elm_Bubble_Data *_pd EINA_UNUSED)
-{
-   return EINA_TRUE;
-}
-
-EOLIAN static Eina_Bool
-_elm_bubble_elm_widget_focus_direction_manager_is(Eo *obj EINA_UNUSED, Elm_Bubble_Data *_pd EINA_UNUSED)
-{
-   return EINA_TRUE;
-}
-
 EOLIAN static void
 _elm_bubble_class_constructor(Efl_Class *klass)
 {
index fe297a7..df62e21 100644 (file)
@@ -38,10 +38,6 @@ class Elm.Bubble (Efl.Ui.Layout, Efl.Ui.Clickable)
    implements {
       class.constructor;
       Efl.Object.constructor;
-      Elm.Widget.focus_direction;
-      Elm.Widget.focus_next_manager_is;
-      Elm.Widget.focus_next;
-      Elm.Widget.focus_direction_manager_is;
       Elm.Widget.on_access_update;
       Efl.Part.part;
    }