summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Bouchaud (yoz) <yoz@efl.so>2019-01-11 12:17:30 +0100
committerMichael Bouchaud (yoz) <yoz@efl.so>2019-01-11 12:17:30 +0100
commit40717c86317c2a3457d8a047297c7bf4c516cf07 (patch)
treec4125ab7d8838fd121b147b2adbb5a3280f3d935
parent27a59e916a0705fc40858e120749fc8baafd6a32 (diff)
Add a background to popup to avoid artifacts when displayed
-rw-r--r--src/weather.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/weather.c b/src/weather.c
index 247d036..b120fc3 100644
--- a/src/weather.c
+++ b/src/weather.c
@@ -636,8 +636,14 @@ _weather_popup_new(Instance *inst)
636 inst->popup = elm_win_add(inst->win, "popup", ELM_WIN_POPUP_MENU); 636 inst->popup = elm_win_add(inst->win, "popup", ELM_WIN_POPUP_MENU);
637 evas_object_event_callback_add(inst->popup, EVAS_CALLBACK_DEL, _weather_popup_del, inst); 637 evas_object_event_callback_add(inst->popup, EVAS_CALLBACK_DEL, _weather_popup_del, inst);
638 638
639 o = elm_bg_add(inst->popup);
640 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
641 elm_win_resize_object_add(inst->popup, o);
642 evas_object_show(o);
643
639 hbx = elm_box_add(inst->popup); 644 hbx = elm_box_add(inst->popup);
640 elm_box_horizontal_set(hbx, EINA_TRUE); 645 elm_box_horizontal_set(hbx, EINA_TRUE);
646 evas_object_size_hint_weight_set(hbx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
641 elm_win_resize_object_add(inst->popup, hbx); 647 elm_win_resize_object_add(inst->popup, hbx);
642 evas_object_show(hbx); 648 evas_object_show(hbx);
643 649