forked from enlightenment/efl
efl_ui/popup: timeout -> closing_timeout
simple property rename ref T7902 Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D9801
This commit is contained in:
parent
2ce877d914
commit
1ca07b72da
|
@ -206,7 +206,7 @@ _timeout_set_cb(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED)
|
|||
{
|
||||
efl_ui_popup_data *p_data = data;
|
||||
if (!p_data->efl_ui_popup) return;
|
||||
efl_ui_popup_timeout_set(p_data->efl_ui_popup, 3);
|
||||
efl_ui_popup_closing_timeout_set(p_data->efl_ui_popup, 3);
|
||||
printf("timemout is set to 3 seconds\n");
|
||||
}
|
||||
|
||||
|
|
|
@ -460,7 +460,7 @@ _efl_ui_popup_efl_gfx_entity_visible_set(Eo *obj, Efl_Ui_Popup_Data *pd, Eina_Bo
|
|||
}
|
||||
|
||||
EOLIAN static void
|
||||
_efl_ui_popup_timeout_set(Eo *obj, Efl_Ui_Popup_Data *pd, double time)
|
||||
_efl_ui_popup_closing_timeout_set(Eo *obj, Efl_Ui_Popup_Data *pd, double time)
|
||||
{
|
||||
if (time < 0.0)
|
||||
time = 0.0;
|
||||
|
@ -474,7 +474,7 @@ _efl_ui_popup_timeout_set(Eo *obj, Efl_Ui_Popup_Data *pd, double time)
|
|||
}
|
||||
|
||||
EOLIAN static double
|
||||
_efl_ui_popup_timeout_get(const Eo *obj EINA_UNUSED, Efl_Ui_Popup_Data *pd)
|
||||
_efl_ui_popup_closing_timeout_get(const Eo *obj EINA_UNUSED, Efl_Ui_Popup_Data *pd)
|
||||
{
|
||||
return pd->timeout;
|
||||
}
|
||||
|
|
|
@ -23,7 +23,7 @@ class @beta Efl.Ui.Popup extends Efl.Ui.Layout_Base implements Efl.Content, Efl.
|
|||
type: Efl.Ui.Popup_Align; [[Alignment type]]
|
||||
}
|
||||
}
|
||||
@property timeout {
|
||||
@property closing_timeout {
|
||||
set {
|
||||
[[ Set the timeout seconds.
|
||||
After timeout seconds, popup will be deleted automatically.
|
||||
|
|
|
@ -203,7 +203,7 @@ EFL_START_TEST(efl_ui_test_popup_events)
|
|||
efl_ui_popup_part_backwall_repeat_events_set(efl_part(popup, "backwall"), EINA_TRUE);
|
||||
click_object(repeat_test_btn);
|
||||
|
||||
efl_ui_popup_timeout_set(popup, 0.1);
|
||||
efl_ui_popup_closing_timeout_set(popup, 0.1);
|
||||
ecore_main_loop_begin();
|
||||
}
|
||||
EFL_END_TEST
|
||||
|
|
Loading…
Reference in New Issue