Black background for slideshows! Probably one of the most requested features.

SVN revision: 30307
This commit is contained in:
titan 2007-06-10 21:46:36 +00:00 committed by titan
parent a9aea24c95
commit 41637e6b7a
1 changed files with 4 additions and 1 deletions

View File

@ -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);