extra: hide popup when selector is switched

This commit is contained in:
Marcel Hollerbach 2017-01-20 10:42:35 +01:00
parent bdb41a0b87
commit 06fed444de
2 changed files with 13 additions and 1 deletions

View File

@ -149,6 +149,16 @@ _item_selected(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event
_show_tooltip(elm_object_item_data_get(it));
}
static void
_selector_hide(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
if (_popup)
{
evas_object_del(_popup);
_popup = NULL;
}
}
Evas_Object*
extra_background_selector_create(void)
{
@ -170,5 +180,7 @@ extra_background_selector_create(void)
_fill_backgrounds();
evas_object_event_callback_add(grid, EVAS_CALLBACK_HIDE, _selector_hide, NULL);
return grid;
}

View File

@ -82,7 +82,7 @@ extra_win_sync(void)
{
Extra_Progress *progress;
progress = extra_ui_progress_popup_show("Updating themes", _extra_win_sync_done_cb, NULL);
progress = extra_ui_progress_popup_show("Updating themes and background", _extra_win_sync_done_cb, NULL);
extra_sync(progress);
}