[Xfce4-commits] [xfce/xfce4-panel] 02/03: Silence compiler warnings

noreply at xfce.org noreply at xfce.org
Fri Nov 23 23:48:09 CET 2018


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

o   c   h   o   s   i       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 xfce/xfce4-panel.

commit 48cf552f4abf5e37296ff2207388478daaa37473
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Fri Nov 23 23:26:44 2018 +0100

    Silence compiler warnings
---
 libxfce4panel/xfce-panel-image.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libxfce4panel/xfce-panel-image.c b/libxfce4panel/xfce-panel-image.c
index 747bc88..e75632d 100644
--- a/libxfce4panel/xfce-panel-image.c
+++ b/libxfce4panel/xfce-panel-image.c
@@ -308,7 +308,6 @@ xfce_panel_image_finalize (GObject *object)
 
 
 
-//#if GTK_CHECK_VERSION (3, 0, 0) && !GTK_CHECK_VERSION (3, 10, 0)
 #if GTK_CHECK_VERSION (3, 0, 0)
 #define GTK_BUTTON_SIZING_FIX
 #endif
@@ -704,7 +703,7 @@ xfce_panel_image_load (gpointer data)
   if (priv->pixbuf != NULL)
     {
       /* use the pixbuf set by the user */
-      pixbuf = g_object_ref (G_OBJECT (priv->pixbuf));
+      pixbuf = (GdkPixbuf *) g_object_ref (G_OBJECT (priv->pixbuf));
 
       if (G_LIKELY (pixbuf != NULL))
         {
@@ -758,7 +757,7 @@ xfce_panel_image_scale_pixbuf (GdkPixbuf *source,
 
   /* check if we need to scale */
   if (source_width <= dest_width && source_height <= dest_height)
-    return g_object_ref (G_OBJECT (source));
+    return (GdkPixbuf *) g_object_ref (G_OBJECT (source));
 
   /* calculate the new dimensions */
 

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


More information about the Xfce4-commits mailing list