summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2012-04-02 00:50:57 +0000
committerChunEon Park <hermet@hermet.pe.kr>2012-04-02 00:50:57 +0000
commit80f7174c3a37404b52441d53f259248cda787dc7 (patch)
treecda5943ba93cd1eebe1ff76b6de079f470afa34d /src/bin
parentb1503da0c173acc568a6aa31d908815176f493ae (diff)
elementary/colorselector - removed unnecesary layout
SVN revision: 69830
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/test_colorselector.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/bin/test_colorselector.c b/src/bin/test_colorselector.c
index 5aa1f72b0..14f688493 100644
--- a/src/bin/test_colorselector.c
+++ b/src/bin/test_colorselector.c
@@ -42,8 +42,7 @@ _colorpalette_longpressed_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__,
42void 42void
43test_colorselector(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 43test_colorselector(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
44{ 44{
45 Evas_Object *win, *bg, *bx, *cs, *fr, *ly, *re; 45 Evas_Object *win, *bg, *bx, *cs, *fr, *re;
46 char buf[PATH_MAX];
47 int r, g, b, a; 46 int r, g, b, a;
48 47
49 win = elm_win_add(NULL, "colorselector", ELM_WIN_BASIC); 48 win = elm_win_add(NULL, "colorselector", ELM_WIN_BASIC);
@@ -68,17 +67,9 @@ test_colorselector(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *eve
68 elm_box_pack_end(bx, fr); 67 elm_box_pack_end(bx, fr);
69 evas_object_show(fr); 68 evas_object_show(fr);
70 69
71 ly = elm_layout_add(win);
72 snprintf(buf, sizeof(buf), "%s/objects/colorpreview.edj", elm_app_data_dir_get());
73 elm_layout_file_set(ly, buf, "main");
74 evas_object_size_hint_align_set(ly, EVAS_HINT_FILL, EVAS_HINT_FILL);
75 evas_object_size_hint_weight_set(ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
76 elm_object_content_set(fr, ly);
77 evas_object_show(ly);
78
79 re = evas_object_rectangle_add(evas_object_evas_get(win)); 70 re = evas_object_rectangle_add(evas_object_evas_get(win));
80 evas_object_show(re); 71 evas_object_show(re);
81 elm_object_part_content_set(ly, "ColorPreview", re); 72 elm_object_content_set(fr, re);
82 73
83 fr = elm_frame_add(win); 74 fr = elm_frame_add(win);
84 evas_object_size_hint_weight_set(fr, 1.0, 0); 75 evas_object_size_hint_weight_set(fr, 1.0, 0);