[gnome-applets] trash: fix -Wincompatible-pointer-types warning
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] trash: fix -Wincompatible-pointer-types warning
- Date: Fri, 3 Apr 2020 20:15:12 +0000 (UTC)
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]