Enlightenment CVS committal Author : titan Project : e17 Module : proto
Dir : e17/proto/ephoto/src Modified Files: ephoto.c ephoto_callbacks.c Log Message: Move ephoto's thumb viewer to use ewl_shadow =================================================================== RCS file: /cvs/e/e17/proto/ephoto/src/ephoto.c,v retrieving revision 1.85 retrieving revision 1.86 diff -u -3 -r1.85 -r1.86 --- ephoto.c 6 Oct 2006 02:22:53 -0000 1.85 +++ ephoto.c 7 Oct 2006 18:08:46 -0000 1.86 @@ -29,7 +29,7 @@ m->win = ewl_window_new(); ewl_window_title_set(EWL_WINDOW(m->win), "Ephoto"); ewl_window_name_set(EWL_WINDOW(m->win), "Ephoto"); - ewl_object_size_request(EWL_OBJECT(m->win), 580, 460); + ewl_object_size_request(EWL_OBJECT(m->win), 620, 480); ewl_callback_append(m->win, EWL_CALLBACK_DELETE_WINDOW, destroy_cb, NULL); ewl_widget_show(m->win); =================================================================== RCS file: /cvs/e/e17/proto/ephoto/src/ephoto_callbacks.c,v retrieving revision 1.31 retrieving revision 1.32 diff -u -3 -r1.31 -r1.32 --- ephoto_callbacks.c 3 Oct 2006 01:50:29 -0000 1.31 +++ ephoto_callbacks.c 7 Oct 2006 18:08:47 -0000 1.32 @@ -207,12 +207,10 @@ image_path = ecore_list_remove_first(images); ecore_dlist_append(current_thumbs, image_path); - cell = ewl_cell_new(); + cell = ewl_shadow_new(); ewl_container_child_append(EWL_CONTAINER(m->viewer_freebox), cell); - ewl_object_minimum_size_set(EWL_OBJECT(cell), 100, 85); - ewl_object_maximum_size_set(EWL_OBJECT(cell), 100, 85); - ewl_theme_data_str_set(cell, "/cell/group", - ewl_theme_data_str_get(m->entry, "group")); + ewl_object_minimum_size_set(EWL_OBJECT(cell), 115, 95); + ewl_object_maximum_size_set(EWL_OBJECT(cell), 115, 95); ewl_callback_append(cell, EWL_CALLBACK_CLICKED, view_images, image_path); ewl_widget_show(cell); @@ -221,6 +219,8 @@ 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_theme_data_str_set(image, "/image_thumbnail/group", + ewl_theme_data_str_get(m->win, "group")); ewl_object_alignment_set(EWL_OBJECT(image), EWL_FLAG_ALIGN_CENTER); ewl_widget_show(image); } ------------------------------------------------------------------------- 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