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:20:22 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-04-02 06:20:22 +0000
commite838d6d2f28c289d83438499dcf5153e724519c2 (patch)
tree7a95d61e19fcc529752fdaf2dcbef260b923d2bc /legacy/elementary/src/bin/test_glview.c
parentelementary/datetime - Elm_datetime open source patch : Datetime enhancements (diff)
downloadefl-e838d6d2f28c289d83438499dcf5153e724519c2.tar.gz
Revert a wrong commit. Un-wanted files are committed together.
Revert "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." This reverts commit 31b24a0edb0028528d7c859070e03236ba42867b. SVN revision: 69847
Diffstat (limited to '')
-rw-r--r--legacy/elementary/src/bin/test_glview.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/legacy/elementary/src/bin/test_glview.c b/legacy/elementary/src/bin/test_glview.c
index f8f2767272..325d487b55 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, *bx, *bt, *gl;
+ Evas_Object *win, *bg, *bx, *bt, *gl;
Ecore_Animator *ani;
GLData *gld = NULL;
@@ -569,12 +569,19 @@ 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_util_standard_add("glview", "GLView");
+ win = elm_win_add(NULL, "glview", ELM_WIN_BASIC);
// 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);
+
bx = elm_box_add(win);
evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, bx);