Small exif fix and small edit view fix.

SVN revision: 28375
This commit is contained in:
titan 2007-02-16 05:06:34 +00:00 committed by titan
parent 1c8f5443e9
commit 39a165d7b2
2 changed files with 5 additions and 3 deletions

View File

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

View File

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