[shotwell] Push empty pixbuf to force repaint of viewer



commit 66568e94c9162cb82e97c5e0e2e21ca1a6d80cd9
Author: Jens Georg <mail jensge org>
Date:   Sat May 21 16:33:49 2016 +0200

    Push empty pixbuf to force repaint of viewer
    
    Otherwise the message that the photo isn't available will never be painted
    
    Signed-off-by: Jens Georg <mail jensge org>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=766338

 src/PhotoPage.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/PhotoPage.vala b/src/PhotoPage.vala
index b0b815d..6c0f7e6 100644
--- a/src/PhotoPage.vala
+++ b/src/PhotoPage.vala
@@ -1136,6 +1136,7 @@ public abstract class EditingHostPage : SinglePhotoPage {
                 
                 set_pixbuf(pixbuf, photo.get_dimensions());
             } catch (GLib.Error err) {
+                set_pixbuf(new Gdk.Pixbuf(Gdk.Colorspace.RGB, false, 8, 1, 1), photo.get_dimensions());
                 warning("%s", err.message);
             }
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]