Small exif fix and small edit view fix.
SVN revision: 28375
This commit is contained in:
parent
1c8f5443e9
commit
39a165d7b2
|
@ -58,15 +58,15 @@ static char *get_image(void)
|
||||||
{
|
{
|
||||||
char *img;
|
char *img;
|
||||||
|
|
||||||
if (ewl_widget_onscreen_is(fbox_vbox))
|
if (VISIBLE(fbox_vbox))
|
||||||
{
|
{
|
||||||
img = (char *)ewl_widget_name_get(currentf);
|
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);
|
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));
|
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");
|
ewl_notebook_page_tab_text_set(EWL_NOTEBOOK(view_box), edit_vbox, "Edit");
|
||||||
|
|
||||||
eimage = add_image(edit_vbox, NULL, 0, NULL, NULL);
|
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();
|
list_vbox = ewl_vbox_new();
|
||||||
ewl_object_fill_policy_set(EWL_OBJECT(list_vbox), EWL_FLAG_FILL_ALL);
|
ewl_object_fill_policy_set(EWL_OBJECT(list_vbox), EWL_FLAG_FILL_ALL);
|
||||||
|
|
Loading…
Reference in New Issue