summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <juyung.seo@samsung.com>2015-01-27 13:21:07 +0900
committerDaniel Juyung Seo <juyung.seo@samsung.com>2015-01-27 13:21:07 +0900
commitba0fa6a2fd32bb86a8cf6b1746c38cfea3c9c371 (patch)
treef783e9e84559f57d08ad398a230f5cf8597ff2a1
parent73ca0904601be181f0b4649369991774ecf52d0e (diff)
gui: Fix the initial panes size by pixel.
-rw-r--r--src/bin/gui.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/gui.c b/src/bin/gui.c
index c594efb..256ee90 100644
--- a/src/bin/gui.c
+++ b/src/bin/gui.c
@@ -450,8 +450,10 @@ gui_create(const char *edje_file,
450 elm_layout_text_set(gd->gui_layout, "edje_name_txt", edje_file); 450 elm_layout_text_set(gd->gui_layout, "edje_name_txt", edje_file);
451 451
452 // Panes for preview and menu 452 // Panes for preview and menu
453 Evas_Coord w = 0;
454 evas_object_geometry_get(gd->win, NULL, NULL, &w, NULL);
453 panes = o = elm_panes_add(gd->gui_layout); 455 panes = o = elm_panes_add(gd->gui_layout);
454 elm_panes_content_left_size_set(o, 0.4); 456 elm_panes_content_left_size_set(o, ELM_SCALE_SIZE(250.0 / w));
455 evas_object_show(o); 457 evas_object_show(o);
456 evas_object_smart_callback_add(o, "clicked,double", 458 evas_object_smart_callback_add(o, "clicked,double",
457 gui_panes_clicked_double_cb, o); 459 gui_panes_clicked_double_cb, o);