[Xfce4-commits] [apps/ristretto] 01/01: Check if background icon exists before saturating it

noreply at xfce.org noreply at xfce.org
Tue Apr 16 18:53:08 CEST 2019


This is an automated email from the git hooks/post-receive script.

f   2   4   0   4       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/ristretto.

commit c360e5255604dfc6f39a53637abd60b7e64555fd
Author: Igor <f2404 at yandex.ru>
Date:   Tue Apr 16 12:52:42 2019 -0400

    Check if background icon exists before saturating it
---
 src/image_viewer.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/image_viewer.c b/src/image_viewer.c
index 9a5106f..4ff4b5a 100644
--- a/src/image_viewer.c
+++ b/src/image_viewer.c
@@ -335,10 +335,13 @@ rstto_image_viewer_init ( GObject *object )
             BACKGROUND_ICON_SIZE,
             0,
             NULL);
-    gdk_pixbuf_saturate_and_pixelate (
-            viewer->priv->bg_icon,
-            viewer->priv->bg_icon,
-            0, FALSE);
+    if (viewer->priv->bg_icon != NULL)
+    {
+        gdk_pixbuf_saturate_and_pixelate (
+                viewer->priv->bg_icon,
+                viewer->priv->bg_icon,
+                0, FALSE);
+    }
 
     g_signal_connect (
             G_OBJECT(viewer->priv->settings),
@@ -2207,7 +2210,6 @@ cb_rstto_image_loader_closed (GdkPixbufLoader *loader, RsttoImageViewerTransacti
 
     if (viewer->priv->transaction == transaction)
     {
-        
         if (NULL == transaction->error)
         {
             gtk_widget_set_tooltip_text (GTK_WIDGET (viewer), NULL);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list