From 41637e6b7a44adb62e4dbcfbe03f88862fe90120 Mon Sep 17 00:00:00 2001 From: titan Date: Sun, 10 Jun 2007 21:46:36 +0000 Subject: [PATCH] Black background for slideshows! Probably one of the most requested features. SVN revision: 30307 --- src/bin/ephoto_slideshow.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/ephoto_slideshow.c b/src/bin/ephoto_slideshow.c index 76c82bf..4878bbe 100644 --- a/src/bin/ephoto_slideshow.c +++ b/src/bin/ephoto_slideshow.c @@ -41,7 +41,6 @@ static void show_first_image(Ewl_Widget *w, void *event, void *data) ecore_dlist_goto_first(em->images); image_path = ecore_dlist_current(em->images); - ewl_container_reset(EWL_CONTAINER(w)); ewl_image_file_set(EWL_IMAGE(w), image_path, NULL); change = ecore_timer_add(5, change_picture, w); @@ -57,6 +56,10 @@ void start_slideshow(Ewl_Widget *w, void *event, void *data) ewl_window_fullscreen_set(EWL_WINDOW(win), 1); ewl_callback_append(win, EWL_CALLBACK_CLICKED, destroy, NULL); + image = add_image(win, PACKAGE_DATA_DIR "/images/black.png", 0, NULL, NULL); + ewl_image_proportional_set(EWL_IMAGE(image), FALSE); + ewl_object_fill_policy_set(EWL_OBJECT(image), EWL_FLAG_FILL_ALL); + cell = ewl_cell_new(); ewl_object_fill_policy_set(EWL_OBJECT(cell), EWL_FLAG_FILL_ALL); ewl_container_child_append(EWL_CONTAINER(win), cell);