[gnome-control-center/wip/jsparber/background: 58/58] [fix] add widget cast



commit 31326253e0aa1fe0d2e7e49e662769d8719f5349
Author: Julian Sparber <julian sparber net>
Date:   Thu Nov 23 21:27:47 2017 +0100

    [fix] add widget cast

 panels/background/cc-background-grid-item.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/background/cc-background-grid-item.c b/panels/background/cc-background-grid-item.c
index ccdd138..87eeb8b 100644
--- a/panels/background/cc-background-grid-item.c
+++ b/panels/background/cc-background-grid-item.c
@@ -254,7 +254,7 @@ cc_background_grid_item_init (CcBackgroundGridItem *self)
   g_signal_connect (G_OBJECT (drawing), "draw",
                     G_CALLBACK (on_gallery_item_draw), self);
 
-  gtk_widget_set_size_request (self, 250, 200);
+  gtk_widget_set_size_request (GTK_WIDGET(self), 250, 200);
   gtk_widget_show (drawing);
   gtk_container_add (GTK_CONTAINER (self), drawing);
 }


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