From 16020ddc6cd32a3aa121b89edc8aeb6a45e78775 Mon Sep 17 00:00:00 2001 From: Matthew Brush Date: Thu, 21 Sep 2017 17:35:39 -0700 Subject: [PATCH] Add cast to `GtkWidget*` to match previous behaviour This fixes minor problem which affected C++ plugins since 3e649dddef93723ebc2487d30023fc5f62d894ca where they would have to add a the cast themselves. --- src/gtkcompat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtkcompat.h b/src/gtkcompat.h index 30f503f39..05aad228f 100644 --- a/src/gtkcompat.h +++ b/src/gtkcompat.h @@ -74,11 +74,11 @@ G_BEGIN_DECLS #if GTK_CHECK_VERSION(3, 0, 0) /* Gtk[VH]Box */ # define compat_gtk_box_new(orientation, homogeneous, spacing) \ - g_object_new(GTK_TYPE_BOX, \ + ((GtkWidget *)g_object_new(GTK_TYPE_BOX, \ "orientation", (orientation), \ "homogeneous", (homogeneous), \ "spacing", (spacing), \ - NULL) + NULL)) # define gtk_vbox_new(homogeneous, spacing) \ compat_gtk_box_new(GTK_ORIENTATION_VERTICAL, (homogeneous), (spacing)) # define gtk_hbox_new(homogeneous, spacing) \ -- 2.11.4.GIT