Commit 4355efe3 authored by Ludovic Fauvet's avatar Ludovic Fauvet

audio player: close the 'more' popup menu on click on the block area

parent 1f65e928
......@@ -444,6 +444,16 @@ fs_playlist_player_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info
static void
audio_player_more_popup_close_cb(void *data, Evas_Object *obj, void *event_info)
mini_player *mpd = data;
mpd->more_state = false;
elm_image_file_set(mpd->fs_more_btn, ICON_DIR"ic_more_circle_normal_o.png", NULL);
static void
fs_more_player_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
......@@ -468,6 +478,8 @@ fs_more_player_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
/* */
evas_object_smart_callback_add(mpd->popup, "block,clicked", audio_player_more_popup_close_cb, mpd);
/* Change the more button img */
elm_image_file_set(mpd->fs_more_btn, ICON_DIR"ic_more_circle_pressed_o.png", NULL);
/* */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment