]> git.saurik.com Git - wxWidgets.git/commitdiff
fix wxSystemSettings::GetColour() for wxGTK3
authorPaul Cornett <paulcor@bullseye.com>
Thu, 19 Sep 2013 05:33:55 +0000 (05:33 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Thu, 19 Sep 2013 05:33:55 +0000 (05:33 +0000)
closes #15519

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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;