]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/frame.cpp
Add some version checks to help compiling on OSX.
[wxWidgets.git] / src / gtk / frame.cpp
index 2110f36629a80af23ce3b276c313f4665785d130..37272e7b0bffa32ae5f234c36606b282236ba049 100644 (file)
@@ -332,7 +332,7 @@ void wxFrame::SetToolBar(wxToolBar *toolbar)
         {
             // Vertical toolbar and m_wxwindow go into an hbox, inside the
             // vbox (m_mainWidget). hbox is created on demand.
-            GtkWidget* hbox = m_wxwindow->parent;
+            GtkWidget* hbox = gtk_widget_get_parent(m_wxwindow);
             if (!GTK_IS_HBOX(hbox))
             {
                 hbox = gtk_hbox_new(false, 0);