From a9aea24c95a69da26fcf8f365d2be0cd4851f297 Mon Sep 17 00:00:00 2001 From: titan Date: Sun, 10 Jun 2007 21:11:29 +0000 Subject: [PATCH] Make the slider fixed size, and aligned to the right. SVN revision: 30306 --- src/bin/ephoto_main.c | 2 +- src/bin/ephoto_normal_view.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bin/ephoto_main.c b/src/bin/ephoto_main.c index e4c7bcd..c56c724 100644 --- a/src/bin/ephoto_main.c +++ b/src/bin/ephoto_main.c @@ -135,7 +135,7 @@ void create_main_gui(void) add_edit_view(em->edit_vbox); - em->view = add_box(em->main_vbox, EWL_ORIENTATION_HORIZONTAL, 2); + em->view = add_box(em->main_vbox, EWL_ORIENTATION_HORIZONTAL, 1); ewl_object_fill_policy_set(EWL_OBJECT(em->view), EWL_FLAG_FILL_ALL); em->browser = ewl_notebook_new(); diff --git a/src/bin/ephoto_normal_view.c b/src/bin/ephoto_normal_view.c index f388dc6..187c892 100644 --- a/src/bin/ephoto_normal_view.c +++ b/src/bin/ephoto_normal_view.c @@ -47,6 +47,8 @@ Ewl_Widget *add_normal_view(Ewl_Widget *c) ewl_range_value_set(EWL_RANGE(em->fthumb_size), 64); ewl_container_child_append(EWL_CONTAINER(em->fbox_vbox), em->fthumb_size); ewl_callback_append(em->fthumb_size, EWL_CALLBACK_VALUE_CHANGED, change_size, NULL); + ewl_object_alignment_set(EWL_OBJECT(em->fthumb_size), EWL_FLAG_ALIGN_RIGHT); + ewl_object_maximum_size_set(EWL_OBJECT(em->fthumb_size), 100, 25); ewl_widget_show(em->fthumb_size); return em->fbox_vbox;