Small exif fix and small edit view fix.

SVN revision: 28375
master
titan 16 years ago committed by titan
parent 1c8f5443e9
commit 39a165d7b2
  1. 6
      src/bin/ephoto_exif.c
  2. 2
      src/bin/ephoto_main.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));
}

@ -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);

Loading…
Cancel
Save