From 7d193c601d4d3d71ac9007dc69de68de02a1dc8d Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Fri, 16 Dec 2016 20:16:40 -0800 Subject: [PATCH] Allow initializing wxWidgets multiple times against one instance of GTK+, part 2 See #17751 --- src/gtk/win_gtk.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gtk/win_gtk.cpp b/src/gtk/win_gtk.cpp index 1617b0d31a..50ffa9f491 100644 --- a/src/gtk/win_gtk.cpp +++ b/src/gtk/win_gtk.cpp @@ -327,7 +327,10 @@ GType wxPizza::type() { type = g_type_from_name("wxPizza"); if (type) + { + parent_class = GTK_WIDGET_CLASS(g_type_class_peek_parent(g_type_class_peek(type))); return type; + } const GTypeInfo info = { sizeof(wxPizzaClass),