X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/80b8c88a63883fb4e676d6fc45a34248839e6834..74a8f67d96591cec101def2a7d47c64072aff7fd:/src/gtk/frame.cpp?ds=sidebyside

diff --git a/src/gtk/frame.cpp b/src/gtk/frame.cpp
index 2110f36629..37272e7b0b 100644
--- a/src/gtk/frame.cpp
+++ b/src/gtk/frame.cpp
@@ -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);