From 39a165d7b229a85acb5b5093da4d966ce0222d39 Mon Sep 17 00:00:00 2001 From: titan Date: Fri, 16 Feb 2007 05:06:34 +0000 Subject: [PATCH] Small exif fix and small edit view fix. SVN revision: 28375 --- src/bin/ephoto_exif.c | 6 +++--- src/bin/ephoto_main.c | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/bin/ephoto_exif.c b/src/bin/ephoto_exif.c index 8a329c6..f6a7397 100644 --- a/src/bin/ephoto_exif.c +++ b/src/bin/ephoto_exif.c @@ -58,15 +58,15 @@ static char *get_image(void) { char *img; - if (ewl_widget_onscreen_is(fbox_vbox)) + if (VISIBLE(fbox_vbox)) { img = (char *)ewl_widget_name_get(currentf); } - else if (ewl_widget_onscreen_is(list_vbox)) + else if (VISIBLE(list_vbox)) { img = (char *)ewl_widget_name_get(currenti); } - else if (ewl_widget_onscreen_is(edit_vbox)) + else if (VISIBLE(edit_vbox)) { img = (char *)ewl_image_file_path_get(EWL_IMAGE(eimage)); } diff --git a/src/bin/ephoto_main.c b/src/bin/ephoto_main.c index 247af39..9775726 100644 --- a/src/bin/ephoto_main.c +++ b/src/bin/ephoto_main.c @@ -153,6 +153,8 @@ void create_main_gui(void) ewl_notebook_page_tab_text_set(EWL_NOTEBOOK(view_box), edit_vbox, "Edit"); eimage = add_image(edit_vbox, NULL, 0, NULL, NULL); + ewl_object_alignment_set(EWL_OBJECT(eimage), EWL_FLAG_ALIGN_CENTER); + ewl_object_fill_policy_set(EWL_OBJECT(eimage), EWL_FLAG_FILL_SHRINK); list_vbox = ewl_vbox_new(); ewl_object_fill_policy_set(EWL_OBJECT(list_vbox), EWL_FLAG_FILL_ALL);