]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/menu.cpp
make the length of string proportional to the parameter to study test time dependency...
[wxWidgets.git] / src / gtk / menu.cpp
index 5511b9bae6336f8b43dc49fca5d0c56730e0c9c8..bbbd626e99e3d7987206b5f2ea1723fa2f2f51d7 100644 (file)
@@ -94,6 +94,8 @@ void wxMenuBar::Init(size_t n, wxMenu *menus[], const wxString titles[], long st
     ApplyWidgetStyle();
 #endif // wxUSE_LIBHILDON/!wxUSE_LIBHILDON
 
+    g_object_ref(m_widget);
+
     for (size_t i = 0; i < n; ++i )
         Append(menus[i], titles[i]);
 }