summaryrefslogtreecommitdiff
path: root/legacy/elementary
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2012-03-27 06:47:07 +0000
committerChunEon Park <hermet@hermet.pe.kr>2012-03-27 06:47:07 +0000
commite2b55715f2eaa1f9a990ace17a7032d221343a3c (patch)
treee68a8212eb6513ef7f643148d8d9bb0819fa6b0f /legacy/elementary
parent2b80722f60b099bc5c4c46d3c45947bda8a1a573 (diff)
elemenatary/panel - modified to use recommended parents.
SVN revision: 69654
Diffstat (limited to 'legacy/elementary')
-rw-r--r--legacy/elementary/src/bin/test_panel.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/legacy/elementary/src/bin/test_panel.c b/legacy/elementary/src/bin/test_panel.c
index edd86c1b70..63306454e7 100644
--- a/legacy/elementary/src/bin/test_panel.c
+++ b/legacy/elementary/src/bin/test_panel.c
@@ -178,12 +178,12 @@ test_panel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
178 evas_object_size_hint_align_set(bx, EVAS_HINT_FILL, EVAS_HINT_FILL); 178 evas_object_size_hint_align_set(bx, EVAS_HINT_FILL, EVAS_HINT_FILL);
179 evas_object_show(bx); 179 evas_object_show(bx);
180 180
181 panel = elm_panel_add(win); 181 panel = elm_panel_add(vbx);
182 elm_panel_orient_set(panel, ELM_PANEL_ORIENT_TOP); 182 elm_panel_orient_set(panel, ELM_PANEL_ORIENT_TOP);
183 evas_object_size_hint_weight_set(panel, EVAS_HINT_EXPAND, 0); 183 evas_object_size_hint_weight_set(panel, EVAS_HINT_EXPAND, 0);
184 evas_object_size_hint_align_set(panel, EVAS_HINT_FILL, EVAS_HINT_FILL); 184 evas_object_size_hint_align_set(panel, EVAS_HINT_FILL, EVAS_HINT_FILL);
185 185
186 toolbar = elm_toolbar_add(win); 186 toolbar = elm_toolbar_add(panel);
187 elm_toolbar_homogeneous_set(toolbar, 0); 187 elm_toolbar_homogeneous_set(toolbar, 0);
188 elm_toolbar_shrink_mode_set(toolbar, ELM_TOOLBAR_SHRINK_NONE); 188 elm_toolbar_shrink_mode_set(toolbar, ELM_TOOLBAR_SHRINK_NONE);
189 evas_object_size_hint_weight_set(toolbar, EVAS_HINT_EXPAND, 0); 189 evas_object_size_hint_weight_set(toolbar, EVAS_HINT_EXPAND, 0);
@@ -196,7 +196,7 @@ test_panel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
196 elm_box_pack_end(vbx, panel); 196 elm_box_pack_end(vbx, panel);
197 evas_object_show(panel); 197 evas_object_show(panel);
198 198
199 panel = elm_panel_add(win); 199 panel = elm_panel_add(bx);
200 elm_panel_orient_set(panel, ELM_PANEL_ORIENT_LEFT); 200 elm_panel_orient_set(panel, ELM_PANEL_ORIENT_LEFT);
201 evas_object_size_hint_weight_set(panel, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 201 evas_object_size_hint_weight_set(panel, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
202 evas_object_size_hint_align_set(panel, 0, EVAS_HINT_FILL); 202 evas_object_size_hint_align_set(panel, 0, EVAS_HINT_FILL);
@@ -207,7 +207,7 @@ test_panel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
207 itc.func.state_get = _state_get; 207 itc.func.state_get = _state_get;
208 itc.func.del = _item_del; 208 itc.func.del = _item_del;
209 209
210 list = elm_genlist_add(win); 210 list = elm_genlist_add(panel);
211 evas_object_size_hint_min_set(list, 100, -1); 211 evas_object_size_hint_min_set(list, 100, -1);
212 evas_object_size_hint_weight_set(list, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 212 evas_object_size_hint_weight_set(list, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
213 evas_object_size_hint_align_set(list, EVAS_HINT_FILL, EVAS_HINT_FILL); 213 evas_object_size_hint_align_set(list, EVAS_HINT_FILL, EVAS_HINT_FILL);
@@ -220,13 +220,13 @@ test_panel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
220 220
221 _fill_list(list); 221 _fill_list(list);
222 222
223 panel = elm_panel_add(win); 223 panel = elm_panel_add(bx);
224 elm_panel_orient_set(panel, ELM_PANEL_ORIENT_RIGHT); 224 elm_panel_orient_set(panel, ELM_PANEL_ORIENT_RIGHT);
225 evas_object_size_hint_weight_set(panel, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 225 evas_object_size_hint_weight_set(panel, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
226 evas_object_size_hint_align_set(panel, 1, EVAS_HINT_FILL); 226 evas_object_size_hint_align_set(panel, 1, EVAS_HINT_FILL);
227 elm_panel_hidden_set(panel, EINA_TRUE); 227 elm_panel_hidden_set(panel, EINA_TRUE);
228 228
229 list = elm_genlist_add(win); 229 list = elm_genlist_add(panel);
230 evas_object_size_hint_min_set(list, 100, -1); 230 evas_object_size_hint_min_set(list, 100, -1);
231 evas_object_size_hint_weight_set(list, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 231 evas_object_size_hint_weight_set(list, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
232 evas_object_size_hint_align_set(list, EVAS_HINT_FILL, EVAS_HINT_FILL); 232 evas_object_size_hint_align_set(list, EVAS_HINT_FILL, EVAS_HINT_FILL);
@@ -246,13 +246,13 @@ test_panel(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
246 246
247 elm_box_pack_end(vbx, bx); 247 elm_box_pack_end(vbx, bx);
248 248
249 panel = elm_panel_add(win); 249 panel = elm_panel_add(vbx);
250 elm_panel_orient_set(panel, ELM_PANEL_ORIENT_BOTTOM); 250 elm_panel_orient_set(panel, ELM_PANEL_ORIENT_BOTTOM);
251 evas_object_size_hint_weight_set(panel, EVAS_HINT_EXPAND, 0); 251 evas_object_size_hint_weight_set(panel, EVAS_HINT_EXPAND, 0);
252 evas_object_size_hint_align_set(panel, EVAS_HINT_FILL, EVAS_HINT_FILL); 252 evas_object_size_hint_align_set(panel, EVAS_HINT_FILL, EVAS_HINT_FILL);
253 elm_panel_hidden_set(panel, EINA_TRUE); 253 elm_panel_hidden_set(panel, EINA_TRUE);
254 254
255 toolbar = elm_toolbar_add(win); 255 toolbar = elm_toolbar_add(panel);
256 elm_toolbar_homogeneous_set(toolbar, 0); 256 elm_toolbar_homogeneous_set(toolbar, 0);
257 elm_toolbar_shrink_mode_set(toolbar, ELM_TOOLBAR_SHRINK_NONE); 257 elm_toolbar_shrink_mode_set(toolbar, ELM_TOOLBAR_SHRINK_NONE);
258 evas_object_size_hint_weight_set(toolbar, EVAS_HINT_EXPAND, 0); 258 evas_object_size_hint_weight_set(toolbar, EVAS_HINT_EXPAND, 0);