Enlightenment CVS committal Author : titan Project : e17 Module : proto
Dir : e17/proto/ephoto/src Modified Files: ephoto.c ephoto_browsing.c Log Message: Make paned size correctly. Make the text centered in rows. =================================================================== RCS file: /cvs/e/e17/proto/ephoto/src/ephoto.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -3 -r1.25 -r1.26 --- ephoto.c 30 Mar 2006 22:07:12 -0000 1.25 +++ ephoto.c 31 Mar 2006 22:10:07 -0000 1.26 @@ -273,10 +273,10 @@ ewl_widget_show(m->hbox); m->vbox = ewl_vbox_new(); - ewl_container_child_append(EWL_CONTAINER(m->hbox), m->vbox); ewl_object_alignment_set(EWL_OBJECT(m->vbox), EWL_FLAG_ALIGN_CENTER); ewl_box_spacing_set(EWL_BOX(m->vbox), 10); - ewl_object_size_request(EWL_OBJECT(m->vbox), 20, 400); + ewl_object_preferred_inner_size_set(EWL_OBJECT(m->vbox), 200, 480); + ewl_container_child_append(EWL_CONTAINER(m->hbox), m->vbox); ewl_widget_show(m->vbox); m->images = ewl_border_new(); @@ -305,6 +305,7 @@ m->notebook = ewl_notebook_new(); ewl_notebook_tabbar_position_set(EWL_NOTEBOOK(m->notebook), EWL_POSITION_TOP); + ewl_object_preferred_inner_size_set(EWL_OBJECT(m->notebook), 440, 480); ewl_container_child_append(EWL_CONTAINER(m->hbox), m->notebook); ewl_object_alignment_set(EWL_OBJECT(m->notebook), EWL_FLAG_ALIGN_CENTER); ewl_object_fill_policy_set(EWL_OBJECT(m->notebook), EWL_FLAG_FILL_ALL); @@ -526,12 +527,8 @@ ewl_widget_show(m->text); m->atext = ewl_text_new(); - if ( audios != NULL ) { - ewl_text_text_set(EWL_TEXT(m->atext), argaudio); - } ewl_container_child_append(EWL_CONTAINER(m->settings), m->atext); ewl_object_alignment_set(EWL_OBJECT(m->atext), EWL_FLAG_ALIGN_CENTER); - ewl_text_font_size_set(EWL_TEXT(m->atext), 12); ewl_widget_show(m->atext); m->hboxv = ewl_hbox_new(); =================================================================== RCS file: /cvs/e/e17/proto/ephoto/src/ephoto_browsing.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -3 -r1.13 -r1.14 --- ephoto_browsing.c 31 Mar 2006 19:46:44 -0000 1.13 +++ ephoto_browsing.c 31 Mar 2006 22:10:07 -0000 1.14 @@ -190,8 +190,10 @@ m->hbox = ewl_hbox_new(); ewl_box_spacing_set(EWL_BOX(m->hbox), 5); + ewl_object_alignment_set(EWL_OBJECT(m->hbox), EWL_FLAG_ALIGN_CENTER); + ewl_object_fill_policy_set(EWL_OBJECT(m->hbox), EWL_FLAG_FILL_ALL); ewl_widget_show(m->hbox); - + m->image = ewl_image_thumbnail_new(); ewl_image_constrain_set(EWL_IMAGE(m->image), 64); ewl_image_proportional_set(EWL_IMAGE(m->image), TRUE); @@ -204,7 +206,8 @@ ewl_widget_name_set(m->text, itemp); ewl_text_text_set(EWL_TEXT(m->text), bname2); ewl_object_minimum_size_set(EWL_OBJECT(m->text), 10, 16); - ewl_object_fill_policy_set(EWL_OBJECT(m->text), EWL_FLAG_FILL_ALL); + ewl_object_fill_policy_set(EWL_OBJECT(m->text), EWL_FLAG_FILL_SHRINK); + ewl_object_alignment_set(EWL_OBJECT(m->text), EWL_FLAG_ALIGN_CENTER); ewl_container_child_append(EWL_CONTAINER(m->hbox), m->text); ewl_widget_show(m->text); ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs