summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-12-24 14:37:16 +0900
committerHermet Park <hermetpark@gmail.com>2019-12-24 14:37:16 +0900
commit03324357edec0fbf53f13a56a1efccdd84bfe0c6 (patch)
treea55c07beed303d14e6edecaf860d6401b4e78d04
parentcf48e9737970205d2ca31cd4db00d73302e047fd (diff)
about: update to use new efl interface.
-rw-r--r--src/bin/about.c33
1 files changed, 14 insertions, 19 deletions
diff --git a/src/bin/about.c b/src/bin/about.c
index d816827..3555578 100644
--- a/src/bin/about.c
+++ b/src/bin/about.c
@@ -6,32 +6,28 @@ static void
6_setup(void) 6_setup(void)
7{ 7{
8 Evas_Object *o; 8 Evas_Object *o;
9 Evas_Textblock_Style *st;
10 9
11 o = evas_object_textblock_add(evas); 10 o = efl_add(EFL_CANVAS_TEXTBLOCK_CLASS, evas);
12 efl_gfx_entity_position_set(o, EINA_POSITION2D(10, 40)); 11 efl_gfx_entity_position_set(o, EINA_POSITION2D(10, 40));
13 efl_gfx_entity_size_set(o, EINA_SIZE2D(win_w - 20, win_h - 50)); 12 efl_gfx_entity_size_set(o, EINA_SIZE2D(win_w - 20, win_h - 50));
14 efl_gfx_entity_visible_set(o, EINA_TRUE); 13 efl_gfx_entity_visible_set(o, EINA_TRUE);
15 st = evas_textblock_style_new(); 14
16 evas_textblock_style_set 15 efl_text_font_family_set(o, "Vera");
17 (st, 16 efl_text_font_size_set(o, 10);
18 "DEFAULT='font=Vera font_size=8 align=left color=#000 wrap=word'" 17 efl_text_color_set(o, 0, 0, 0, 255);
19 "center='+ font=Vera font_size=10 align=center'" 18 efl_text_multiline_set(o, EINA_TRUE);
20 "/center='- \n \n'" 19 efl_text_horizontal_align_set(o, 0.5);
21 "p='+ font=Vera font_size=10 align=left'" 20 efl_text_wrap_set(o, EFL_TEXT_FORMAT_WRAP_WORD);
22 "/p='- \n \n'" 21
23 ); 22 efl_text_markup_set
24 evas_object_textblock_style_set(o, st); 23 (o,
25 evas_object_textblock_clear(o);
26 evas_object_textblock_text_markup_set
27 (o, "<center>"
28 "Enlightenment used to be a window manager project, but " 24 "Enlightenment used to be a window manager project, but "
29 "since has changed a lot to become a miniature desktop and mobile " 25 "since has changed a lot to become a miniature desktop and mobile "
30 "device environment all of its own. It is now made up of many " 26 "device environment all of its own. It is now made up of many "
31 "components (libraries and applications) that have specific uses. " 27 "components (libraries and applications) that have specific uses. "
32 "It is very large, and so requires more testing and demonstration." 28 "It is very large, and so requires more testing and demonstration."
33 "</center>" 29 "</center>"
34 30 "</br>"
35 "<center>" 31 "<center>"
36 "Expedite is a full test suite for Evas, which is one of the " 32 "Expedite is a full test suite for Evas, which is one of the "
37 "core components of the Enlightenment Foundation Libraries. Evas " 33 "core components of the Enlightenment Foundation Libraries. Evas "
@@ -39,9 +35,8 @@ _setup(void)
39 "render to many targets, including framebuffer, X11, OpenGL, memory, " 35 "render to many targets, including framebuffer, X11, OpenGL, memory, "
40 "DirectFB and other targets to boot. It handles high level graphic " 36 "DirectFB and other targets to boot. It handles high level graphic "
41 "layout descriptions that applications set up, dealing with the hard " 37 "layout descriptions that applications set up, dealing with the hard "
42 "work of doing the drawing for them." 38 "work of doing the drawing for them.");
43 "</center>"); 39
44 evas_textblock_style_free(st);
45 o_text = o; 40 o_text = o;
46 ui_fps(0.0); 41 ui_fps(0.0);
47} 42}