aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen 'Okra' Houston <smhouston88@gmail.com>2017-08-21 21:05:49 (GMT)
committerStephen 'Okra' Houston <smhouston88@gmail.com>2017-08-27 17:45:27 (GMT)
commitab43168f907cc3da747fab8297edec2b9a6515d6 (patch)
tree27b745893d9bac62619aa50991680bc72f4e30c6
parentadd generated .pot file to ignore so we dont se "untracked files" (diff)
downloadephoto-ab43168f907cc3da747fab8297edec2b9a6515d6.tar.gz
Ephoto: Don't use panes in the editor.
-rw-r--r--src/bin/ephoto_editor.c9
1 files 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);
}