efl_ui_tab_bar: the type of this event is annotated as object
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Wed, 20 Mar 2019 07:36:21 +0000 (08:36 +0100)
committerYeongjong Lee <yj34.lee@samsung.com>
Tue, 2 Apr 2019 03:45:17 +0000 (12:45 +0900)
however, efl_ui_tab_bar does pass in there a int. For now i decided that
we just pass NULL here, if this is not accaptable then we can still add
another event to the object itself.

fix T7758

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D8418

src/lib/elementary/efl_ui_tab_bar.c

index 6aebe06..b8c1dfc 100644 (file)
@@ -187,7 +187,7 @@ _tab_select(Efl_Ui_Tab_Bar_Data *sd, Tab_Info *ti)
 
         index = eina_list_data_idx(sd->tab_infos, ti);
 
-        efl_event_callback_call(tp, EFL_UI_EVENT_ITEM_SELECTED, (void *)(intptr_t)index);
+        efl_event_callback_call(tp, EFL_UI_EVENT_ITEM_SELECTED, NULL);
 
         sd->cur = index;
      }