]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/settings.cpp
Fix a very annoying autorelease pool memory leak.
[wxWidgets.git] / src / gtk / settings.cpp
index 97f72c61d4acc23997cada69572717871b464ae8..89353c0b5c15172d3ebca750b4dadaccb5be4343 100644 (file)
@@ -38,6 +38,10 @@ static GtkContainer* ContainerWidget()
     {
         s_widget = GTK_CONTAINER(gtk_fixed_new());
         GtkWidget* window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+#ifdef __WXGTK3__
+        // need this to initialize style for window
+        gtk_widget_get_style_context(GTK_WIDGET(window));
+#endif
         gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(s_widget));
     }
     return s_widget;