summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_code.c
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2017-12-07 23:36:46 +0000
committerAndy Williams <andy@andywilliams.me>2017-12-07 23:39:49 +0000
commitbdcd034af546313f496cf30188539e77915488ff (patch)
treedfbd666e0d02d4c2bab249b94563eea97010035c /src/bin/elementary/test_code.c
parent1a5d6fa93ad35de94ddb19664336eee1050d980c (diff)
elm_code: Update background handling to work with transparency better
Diffstat (limited to '')
-rw-r--r--src/bin/elementary/test_code.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/bin/elementary/test_code.c b/src/bin/elementary/test_code.c
index 81b68812a8..ab7c8d346f 100644
--- a/src/bin/elementary/test_code.c
+++ b/src/bin/elementary/test_code.c
@@ -5,12 +5,15 @@
5 5
6static Evas_Object *_test_code_win_create(const char *id, const char *name) 6static Evas_Object *_test_code_win_create(const char *id, const char *name)
7{ 7{
8 Evas_Object *win; 8 Evas_Object *win, *bg;
9 9
10 win = elm_win_add(NULL, id, ELM_WIN_BASIC); 10 win = elm_win_add(NULL, id, ELM_WIN_BASIC);
11 elm_win_title_set(win, name); 11 elm_win_title_set(win, name);
12 elm_win_autodel_set(win, EINA_TRUE); 12 elm_win_autodel_set(win, EINA_TRUE);
13 elm_win_alpha_set(win, EINA_TRUE); 13
14 bg = elm_bg_add(win);
15 elm_win_resize_object_add(win, bg);
16 evas_object_show(bg);
14 17
15 evas_object_resize(win, 360 * elm_config_scale_get(), 220 * elm_config_scale_get()); 18 evas_object_resize(win, 360 * elm_config_scale_get(), 220 * elm_config_scale_get());
16 return win; 19 return win;
@@ -96,7 +99,6 @@ _elm_code_test_editor_setup(Evas_Object *parent, Eina_Bool log)
96 elm_obj_code_widget_editable_set(widget, EINA_TRUE); 99 elm_obj_code_widget_editable_set(widget, EINA_TRUE);
97 elm_obj_code_widget_show_whitespace_set(widget, EINA_TRUE); 100 elm_obj_code_widget_show_whitespace_set(widget, EINA_TRUE);
98 elm_obj_code_widget_line_numbers_set(widget, EINA_TRUE); 101 elm_obj_code_widget_line_numbers_set(widget, EINA_TRUE);
99 elm_obj_code_widget_alpha_set(widget, 200);
100 102
101 if (!log) 103 if (!log)
102 { 104 {