aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-03-11 11:30:22 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-03-11 21:35:02 +0100
commitca8e0d6eb72241931ee7d1810aa22b8cd09b6c8a (patch)
tree9e8ca0cb08fa975e0b8dd65cf27cde49ac55cce9 /src/lib/elementary/efl_ui_win.c
parentefl.ui.win: add event info to 'rotation,changed' event and rename (diff)
downloadefl-ca8e0d6eb72241931ee7d1810aa22b8cd09b6c8a.tar.gz
efl.ui.win: merge fullscreen+maximize events to use *,changed naming
ref https://phab.enlightenment.org/T7511 Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D8294
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
-rw-r--r--src/lib/elementary/efl_ui_win.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index dde917663d..3467e6482c 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -1797,35 +1797,39 @@ _elm_win_state_change(Ecore_Evas *ee)
#endif
if (ch_fullscreen)
{
+ Eina_Bool fullscreen;
ELM_WIN_DATA_ALIVE_CHECK(obj, sd);
_elm_win_frame_style_update(sd, 0, 1);
+ fullscreen = sd->fullscreen;
if (sd->fullscreen)
{
- efl_event_callback_legacy_call
- (obj, EFL_UI_WIN_EVENT_FULLSCREEN, NULL);
+ evas_object_smart_callback_call(obj, "fullscreen", NULL);
}
else
{
- efl_event_callback_legacy_call
- (obj, EFL_UI_WIN_EVENT_UNFULLSCREEN, NULL);
+ evas_object_smart_callback_call(obj, "unfullscreen", NULL);
}
+ efl_event_callback_call(obj, EFL_UI_WIN_EVENT_FULLSCREEN_CHANGED, (void*) (uintptr_t)fullscreen);
}
if (ch_maximized)
{
+ Eina_Bool maximized;
ELM_WIN_DATA_ALIVE_CHECK(obj, sd);
_elm_win_frame_style_update(sd, 0, 1);
+ maximized = sd->maximized;
if (sd->maximized)
{
- efl_event_callback_legacy_call(obj, EFL_UI_WIN_EVENT_MAXIMIZED, NULL);
+ evas_object_smart_callback_call(obj, "maximized", NULL);
if (_elm_config->atspi_mode)
efl_access_window_maximized_signal_emit(obj);
}
else
{
- efl_event_callback_legacy_call(obj, EFL_UI_WIN_EVENT_UNMAXIMIZED, NULL);
+ evas_object_smart_callback_call(obj, "unmaximized", NULL);
if (_elm_config->atspi_mode)
efl_access_window_restored_signal_emit(obj);
}
+ efl_event_callback_call(obj, EFL_UI_WIN_EVENT_MAXIMIZED_CHANGED, (void*) (uintptr_t)maximized);
}
if (ch_profile)
{