aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_glview.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-02 06:07:58 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-02 06:07:58 +0000
commitb4308ab0892018db44d2949c3e3362e57482513a (patch)
treeff3a1eb96043745b04b9dd717d5656248332cce4 /legacy/elementary/src/bin/test_glview.c
parentelementary/dayselector - pretty better. (diff)
downloadefl-b4308ab0892018db44d2949c3e3362e57482513a.tar.gz
elm bin: Use convenient utility function elm_win_util_standard_add() instead of elm_win_add() + elm_bg_add(). This is for normal style (ELM_WIN_BASIC) window.
SVN revision: 69845
Diffstat (limited to '')
-rw-r--r--legacy/elementary/src/bin/test_glview.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/legacy/elementary/src/bin/test_glview.c b/legacy/elementary/src/bin/test_glview.c
index 325d487b55..f8f2767272 100644
--- a/legacy/elementary/src/bin/test_glview.c
+++ b/legacy/elementary/src/bin/test_glview.c
@@ -558,7 +558,7 @@ _mouse_up(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *eve
void
test_glview(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *win, *bg, *bx, *bt, *gl;
+ Evas_Object *win, *bx, *bt, *gl;
Ecore_Animator *ani;
GLData *gld = NULL;
@@ -569,18 +569,11 @@ test_glview(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
// new window - do the usual and give it a name, title and delete handler
// Set the engine to opengl_x11
elm_config_preferred_engine_set("opengl_x11");
- win = elm_win_add(NULL, "glview", ELM_WIN_BASIC);
+ win = elm_win_util_standard_add("glview", "GLView");
// Set preferred engine back to default from config
elm_config_preferred_engine_set(NULL);
-
- elm_win_title_set(win, "GLView");
- elm_win_autodel_set(win, EINA_TRUE);
- // add a standard bg
- bg = elm_bg_add(win);
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_win_resize_object_add(win, bg);
- evas_object_show(bg);
+ elm_win_autodel_set(win, EINA_TRUE);
bx = elm_box_add(win);
evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);