summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-08-23 02:53:59 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-08-23 02:53:59 +0000
commit6e790ac6d22fe5eff0ab5a65aeff5f0d8920bfc1 (patch)
tree34ed66a30c9382d228e234008ba53e589910a76f /src
parenta6ed899bd62e3734c5117a2bdf8c68dcb18df30d (diff)
always guarantee there is an opaque object at the bottom of non-translucent windows.
if you set media bg as png or other images with transparency, it would show garbage. SVN revision: 75586
Diffstat (limited to 'src')
-rw-r--r--src/bin/main.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 6aef497..41e7c30 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -13,7 +13,7 @@
13 13
14int _log_domain = -1; 14int _log_domain = -1;
15 15
16static Evas_Object *win = NULL, *bg = NULL, *term = NULL, *media = NULL; 16static Evas_Object *win = NULL, *bg = NULL, *backbg = NULL, *term = NULL, *media = NULL;
17static Evas_Object *cmdbox = NULL; 17static Evas_Object *cmdbox = NULL;
18static Evas_Object *popmedia = NULL; 18static Evas_Object *popmedia = NULL;
19static Evas_Object *conform = NULL; 19static Evas_Object *conform = NULL;
@@ -248,11 +248,13 @@ main_trans_update(const Config *config)
248 { 248 {
249 edje_object_signal_emit(bg, "translucent,on", "terminology"); 249 edje_object_signal_emit(bg, "translucent,on", "terminology");
250 elm_win_alpha_set(win, EINA_TRUE); 250 elm_win_alpha_set(win, EINA_TRUE);
251 evas_object_hide(backbg);
251 } 252 }
252 else 253 else
253 { 254 {
254 edje_object_signal_emit(bg, "translucent,off", "terminology"); 255 edje_object_signal_emit(bg, "translucent,off", "terminology");
255 elm_win_alpha_set(win, EINA_FALSE); 256 elm_win_alpha_set(win, EINA_FALSE);
257 evas_object_show(backbg);
256 } 258 }
257} 259}
258 260
@@ -641,6 +643,13 @@ elm_main(int argc, char **argv)
641 if (override) elm_win_override_set(win, EINA_TRUE); 643 if (override) elm_win_override_set(win, EINA_TRUE);
642 if (maximized) elm_win_maximized_set(win, EINA_TRUE); 644 if (maximized) elm_win_maximized_set(win, EINA_TRUE);
643 645
646 backbg = o = evas_object_rectangle_add(evas_object_evas_get(win));
647 evas_object_color_set(o, 0, 0, 0, 255);
648 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
649 evas_object_size_hint_fill_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);
650 elm_win_resize_object_add(win, o);
651 evas_object_show(o);
652
644 conform = o = elm_conformant_add(win); 653 conform = o = elm_conformant_add(win);
645 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 654 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
646 evas_object_size_hint_fill_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL); 655 evas_object_size_hint_fill_set(o, EVAS_HINT_FILL, EVAS_HINT_FILL);