From ab43168f907cc3da747fab8297edec2b9a6515d6 Mon Sep 17 00:00:00 2001 From: Stephen 'Okra' Houston Date: Mon, 21 Aug 2017 16:05:49 -0500 Subject: [PATCH] Ephoto: Don't use panes in the editor. --- src/bin/ephoto_editor.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/bin/ephoto_editor.c b/src/bin/ephoto_editor.c index 4a0c253..358fd3c 100644 --- a/src/bin/ephoto_editor.c +++ b/src/bin/ephoto_editor.c @@ -29,11 +29,10 @@ ephoto_editor_add(Ephoto *ephoto, Evas_Object *parent, const char *title, const frame = elm_frame_add(parent); elm_object_text_set(frame, title); - EPHOTO_WEIGHT(frame, 0.3, EVAS_HINT_EXPAND); + EPHOTO_WEIGHT(frame, ephoto->config->right_size, EVAS_HINT_EXPAND); EPHOTO_FILL(frame); evas_object_data_set(frame, data_name, data); - elm_object_part_content_set(parent, "right", frame); - elm_panes_content_right_size_set(parent, ephoto->config->right_size); + elm_box_pack_end(parent, frame); evas_object_show(frame); box = elm_box_add(frame); @@ -94,14 +93,12 @@ ephoto_editor_add(Ephoto *ephoto, Evas_Object *parent, const char *title, const } void -ephoto_editor_del(Evas_Object *obj, Evas_Object *parent) +ephoto_editor_del(Evas_Object *obj, Evas_Object *parent EINA_UNUSED) { Evas_Object *frame = evas_object_data_get(obj, "frame"); - elm_object_part_content_unset(parent, "right"); if (frame) evas_object_del(frame); - elm_panes_content_right_size_set(parent, 0.0); ecore_event_add(EPHOTO_EVENT_EDITOR_BACK, NULL, NULL, NULL); }