diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-09-23 09:36:56 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-09-23 09:36:56 +0200 |
commit | 8004f1a7ad3cc6a3659517f3374bdf1b63416b24 (patch) | |
tree | b7b82cc6e01cd47d22f660e25508a7d8d555dc89 /src/CollectionPage.vala | |
parent | 28c68a75acac7ac3ce7fb169bc6aa65e16551c53 (diff) | |
parent | 566dc060676b41e1e58a446b7dcc4159e242fee6 (diff) |
Merge tag 'upstream/0.20.0'
Upstream version 0.20.0
Diffstat (limited to 'src/CollectionPage.vala')
-rw-r--r-- | src/CollectionPage.vala | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/CollectionPage.vala b/src/CollectionPage.vala index 070452c..22dcdee 100644 --- a/src/CollectionPage.vala +++ b/src/CollectionPage.vala @@ -701,17 +701,21 @@ public abstract class CollectionPage : MediaPage { MediaSourceCollection.filter_media((Gee.Collection<MediaSource>) get_view().get_selected_sources(), photos, null); + bool desktop, screensaver; if (photos.size == 1) { - AppWindow.get_instance().set_busy_cursor(); - DesktopIntegration.set_background(photos[0]); - AppWindow.get_instance().set_normal_cursor(); + SetBackgroundPhotoDialog dialog = new SetBackgroundPhotoDialog(); + if (dialog.execute(out desktop, out screensaver)) { + AppWindow.get_instance().set_busy_cursor(); + DesktopIntegration.set_background(photos[0], desktop, screensaver); + AppWindow.get_instance().set_normal_cursor(); + } } else if (photos.size > 1) { SetBackgroundSlideshowDialog dialog = new SetBackgroundSlideshowDialog(); int delay; - if (dialog.execute(out delay)) { + if (dialog.execute(out delay, out desktop, out screensaver)) { AppWindow.get_instance().set_busy_cursor(); DesktopIntegration.set_background_slideshow(photos, delay, - DESKTOP_SLIDESHOW_TRANSITION_SEC); + DESKTOP_SLIDESHOW_TRANSITION_SEC, desktop, screensaver); AppWindow.get_instance().set_normal_cursor(); } } |