Enlightenment CVS committal Author : titan Project : e17 Module : proto
Dir : e17/proto/ephoto/src Modified Files: ephoto_callbacks.c ephoto_slideshow.c ephoto_viewer.c Log Message: Add the abillity now to actually specify in the entries the size slideshow you want (in pixels) =================================================================== RCS file: /cvs/e/e17/proto/ephoto/src/ephoto_callbacks.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -3 -r1.27 -r1.28 --- ephoto_callbacks.c 24 Sep 2006 14:25:27 -0000 1.27 +++ ephoto_callbacks.c 24 Sep 2006 16:22:42 -0000 1.28 @@ -228,6 +228,7 @@ ewl_container_child_append(EWL_CONTAINER(cell), image); ewl_image_size_set(EWL_IMAGE(image), 97, 83); ewl_image_proportional_set(EWL_IMAGE(image), TRUE); + ewl_object_alignment_set(EWL_OBJECT(image), EWL_FLAG_ALIGN_CENTER); ewl_widget_show(image); } ecore_list_destroy(ls); =================================================================== RCS file: /cvs/e/e17/proto/ephoto/src/ephoto_slideshow.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- ephoto_slideshow.c 23 Sep 2006 00:23:08 -0000 1.11 +++ ephoto_slideshow.c 24 Sep 2006 16:22:42 -0000 1.12 @@ -282,7 +282,24 @@ } ewl_widget_destroy(sc->win); } - + +void change_radio(Ewl_Widget *w, void *event, void *data) +{ + Slide_Config *sc; + sc = data; + + if (ewl_checkbutton_is_checked(EWL_CHECKBUTTON(sc->custom))) + { + ewl_widget_enable(sc->wentry); + ewl_widget_enable(sc->hentry); + } + else if (ewl_checkbutton_is_checked(EWL_CHECKBUTTON(sc->fullscreen))) + { + ewl_widget_disable(sc->wentry); + ewl_widget_disable(sc->hentry); + } +} + void create_slideshow_config(Ewl_Widget *w, void *event, void *data) { char temp[PATH_MAX]; @@ -331,6 +348,7 @@ ewl_container_child_append(EWL_CONTAINER(hbox), sc->fullscreen); ewl_radiobutton_checked_set(EWL_RADIOBUTTON(sc->fullscreen), sc->full_size); ewl_object_alignment_set(EWL_OBJECT(sc->fullscreen), EWL_FLAG_ALIGN_LEFT); + ewl_callback_append(sc->fullscreen, EWL_CALLBACK_CLICKED, change_radio, sc); ewl_widget_show(sc->fullscreen); sc->custom = ewl_radiobutton_new(); @@ -340,6 +358,7 @@ ewl_radiobutton_chain_set(EWL_RADIOBUTTON(sc->fullscreen), EWL_RADIOBUTTON(sc->custom)); ewl_object_alignment_set(EWL_OBJECT(sc->custom), EWL_FLAG_ALIGN_RIGHT); + ewl_callback_append(sc->custom, EWL_CALLBACK_CLICKED, change_radio, sc); ewl_widget_show(sc->custom); hbox = ewl_hbox_new(); =================================================================== RCS file: /cvs/e/e17/proto/ephoto/src/ephoto_viewer.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- ephoto_viewer.c 24 Sep 2006 14:25:27 -0000 1.3 +++ ephoto_viewer.c 24 Sep 2006 16:22:42 -0000 1.4 @@ -114,6 +114,7 @@ ewl_container_child_append(EWL_CONTAINER(cell), image); ewl_image_size_set(EWL_IMAGE(image), 48, 48); ewl_image_proportional_set(EWL_IMAGE(image), TRUE); + ewl_object_alignment_set(EWL_OBJECT(image), EWL_FLAG_ALIGN_CENTER); ewl_widget_show(image); ecore_dlist_next(view_thumbs); ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs