]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't use deprecated gtk_widget_ref().
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 25 Mar 2011 15:08:25 +0000 (15:08 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 25 Mar 2011 15:08:25 +0000 (15:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/frame.cpp

index a4148d0ed0239c15c1bb8a0e83d4d6c01eba23c8..2110f36629a80af23ce3b276c313f4665785d130 100644 (file)
@@ -271,7 +271,7 @@ void wxFrame::DetachMenuBar()
 #if wxUSE_LIBHILDON || wxUSE_LIBHILDON2
         hildon_window_set_menu(HILDON_WINDOW(m_widget), NULL);
 #else // !wxUSE_LIBHILDON && !wxUSE_LIBHILDON2
-        gtk_widget_ref( m_frameMenuBar->m_widget );
+        g_object_ref( m_frameMenuBar->m_widget );
 
         gtk_container_remove( GTK_CONTAINER(m_mainWidget), m_frameMenuBar->m_widget );
 #endif // wxUSE_LIBHILDON || wxUSE_LIBHILDON2 /!wxUSE_LIBHILDON && !wxUSE_LIBHILDON2