[gnome-applets] trash: fix -Wincompatible-pointer-types warning



commit 313b155f6e2b2d044e978547d54e5e38a0440a31
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Fri Apr 3 21:58:39 2020 +0300

    trash: fix -Wincompatible-pointer-types warning

 gnome-applets/trash/trash-applet.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnome-applets/trash/trash-applet.c b/gnome-applets/trash/trash-applet.c
index a18cdc630..02efebeb4 100644
--- a/gnome-applets/trash/trash-applet.c
+++ b/gnome-applets/trash/trash-applet.c
@@ -37,7 +37,7 @@ struct _TrashApplet
   GFileMonitor *trash_monitor;
   GFile *trash;
 
-  GtkImage *image;
+  GtkWidget *image;
   GIcon *icon;
   gint items;
 };
@@ -153,7 +153,7 @@ trash_applet_set_icon_size (TrashApplet *applet,
     size = 48;
 
   /* GtkImage already contains a check to do nothing if it's the same */
-  gtk_image_set_pixel_size (applet->image, size);
+  gtk_image_set_pixel_size (GTK_IMAGE (applet->image), size);
 }
 
 static void
@@ -526,8 +526,8 @@ trash_applet_init (TrashApplet *self)
 
   /* setup the image */
   self->image = g_object_ref_sink (gtk_image_new ());
-  gtk_container_add (GTK_CONTAINER (self), GTK_WIDGET (self->image));
-  gtk_widget_show (GTK_WIDGET (self->image));
+  gtk_container_add (GTK_CONTAINER (self), self->image);
+  gtk_widget_show (self->image);
 
   /* setup the trash backend */
   self->trash = g_file_new_for_uri ("trash:/");


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