From: Robert Roebling Date: Tue, 29 Feb 2000 15:09:09 +0000 (+0000) Subject: Commented out debug code. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/589c9fff0437340c1816363e39e9854f3eb49e78 Commented out debug code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index daff7c92be..8f5de087be 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -352,8 +352,11 @@ wxMenu *wxMenuBar::Remove(size_t pos) return (wxMenu*) NULL; GtkMenuShell *menu_shell = GTK_MENU_SHELL(m_factory->widget); +/* + printf( "factory entries before %d\n", (int)g_slist_length(m_factory->items) ); printf( "menu shell entries before %d\n", (int)g_list_length( menu_shell->children ) ); +*/ // unparent calls unref() and that would delete the widget so we raise // the ref count to 2 artificially before invoking unparent. @@ -362,8 +365,10 @@ wxMenu *wxMenuBar::Remove(size_t pos) gtk_widget_destroy( menu->m_owner ); +/* printf( "factory entries after %d\n", (int)g_slist_length(m_factory->items) ); printf( "menu shell entries after %d\n", (int)g_list_length( menu_shell->children ) ); +*/ return menu; } diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index daff7c92be..8f5de087be 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -352,8 +352,11 @@ wxMenu *wxMenuBar::Remove(size_t pos) return (wxMenu*) NULL; GtkMenuShell *menu_shell = GTK_MENU_SHELL(m_factory->widget); +/* + printf( "factory entries before %d\n", (int)g_slist_length(m_factory->items) ); printf( "menu shell entries before %d\n", (int)g_list_length( menu_shell->children ) ); +*/ // unparent calls unref() and that would delete the widget so we raise // the ref count to 2 artificially before invoking unparent. @@ -362,8 +365,10 @@ wxMenu *wxMenuBar::Remove(size_t pos) gtk_widget_destroy( menu->m_owner ); +/* printf( "factory entries after %d\n", (int)g_slist_length(m_factory->items) ); printf( "menu shell entries after %d\n", (int)g_list_length( menu_shell->children ) ); +*/ return menu; }