|
|
|
@ -23,7 +23,7 @@ change_size(Ewl_Widget *w, void *event, void *data) |
|
|
|
|
Ewl_Widget * |
|
|
|
|
add_normal_view(Ewl_Widget *c) |
|
|
|
|
{ |
|
|
|
|
Ewl_Widget *box, *button, *hbox, *sp, *vbox; |
|
|
|
|
Ewl_Widget *avbox, *box, *button, *hbox, *image, *sp, *vbox; |
|
|
|
|
|
|
|
|
|
em->fbox_vbox = add_box(c, EWL_ORIENTATION_VERTICAL, 5); |
|
|
|
|
ewl_object_fill_policy_set(EWL_OBJECT(em->fbox_vbox),
|
|
|
|
@ -36,12 +36,10 @@ add_normal_view(Ewl_Widget *c) |
|
|
|
|
ewl_container_child_append(EWL_CONTAINER(em->fbox_vbox), hbox); |
|
|
|
|
ewl_widget_show(hbox); |
|
|
|
|
|
|
|
|
|
vbox = add_box(hbox, EWL_ORIENTATION_VERTICAL, 2); |
|
|
|
|
ewl_object_fill_policy_set(EWL_OBJECT(vbox), EWL_FLAG_FILL_VFILL);
|
|
|
|
|
|
|
|
|
|
show_albums(vbox); |
|
|
|
|
avbox = add_box(hbox, EWL_ORIENTATION_VERTICAL, 2); |
|
|
|
|
ewl_object_fill_policy_set(EWL_OBJECT(avbox), EWL_FLAG_FILL_VFILL);
|
|
|
|
|
|
|
|
|
|
box = add_box(vbox, EWL_ORIENTATION_HORIZONTAL, 2); |
|
|
|
|
box = add_box(avbox, EWL_ORIENTATION_HORIZONTAL, 2); |
|
|
|
|
ewl_object_fill_policy_set(EWL_OBJECT(box), EWL_FLAG_FILL_SHRINK); |
|
|
|
|
|
|
|
|
|
button = add_button(box, "Import", PACKAGE_DATA_DIR "/images/add.png",
|
|
|
|
@ -65,17 +63,28 @@ add_normal_view(Ewl_Widget *c) |
|
|
|
|
ewl_container_child_append(EWL_CONTAINER(sp), em->fbox); |
|
|
|
|
ewl_widget_show(em->fbox); |
|
|
|
|
|
|
|
|
|
box = add_box(vbox, EWL_ORIENTATION_HORIZONTAL, 10); |
|
|
|
|
ewl_object_fill_policy_set(EWL_OBJECT(box), EWL_FLAG_FILL_SHRINK); |
|
|
|
|
|
|
|
|
|
image = add_image(box, PACKAGE_DATA_DIR "/images/image.png", 0, NULL, NULL); |
|
|
|
|
ewl_image_constrain_set(EWL_IMAGE(image), 20); |
|
|
|
|
|
|
|
|
|
em->fthumb_size = ewl_hseeker_new(); |
|
|
|
|
ewl_range_minimum_value_set(EWL_RANGE(em->fthumb_size), 16); |
|
|
|
|
ewl_range_maximum_value_set(EWL_RANGE(em->fthumb_size), 144); |
|
|
|
|
ewl_range_step_set(EWL_RANGE(em->fthumb_size), 16); |
|
|
|
|
ewl_range_value_set(EWL_RANGE(em->fthumb_size), 80); |
|
|
|
|
ewl_container_child_append(EWL_CONTAINER(vbox), em->fthumb_size); |
|
|
|
|
ewl_container_child_append(EWL_CONTAINER(box), em->fthumb_size); |
|
|
|
|
ewl_callback_append(em->fthumb_size, EWL_CALLBACK_VALUE_CHANGED,
|
|
|
|
|
change_size, NULL); |
|
|
|
|
ewl_object_maximum_size_set(EWL_OBJECT(em->fthumb_size), 160, 40); |
|
|
|
|
ewl_widget_show(em->fthumb_size); |
|
|
|
|
|
|
|
|
|
show_albums(avbox); |
|
|
|
|
|
|
|
|
|
image = add_image(box, PACKAGE_DATA_DIR "/images/image.png", 0, NULL, NULL); |
|
|
|
|
ewl_image_constrain_set(EWL_IMAGE(image), 32); |
|
|
|
|
|
|
|
|
|
return em->fbox_vbox; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|