X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/01603d4396d632163e19f8cde798bb1807f2b8a7..65669e3152f9d6d3bb77c31d4211a356fe089d56:/src/gtk/menu.cpp diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index e1be8ff88a..bbbd626e99 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -706,7 +706,7 @@ void wxMenu::Init() // NB: keep reference to the menu so that it is not destroyed behind // our back by GTK+ e.g. when it is removed from menubar: g_object_ref(m_menu); - g_object_ref_sink(m_menu); + gtk_object_sink(GTK_OBJECT(m_menu)); m_owner = (GtkWidget*) NULL;