Commented out debug code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2000-02-29 15:09:09 +00:00
parent c5145d4177
commit 589c9fff04
2 changed files with 10 additions and 0 deletions

View File

@ -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;
}

View File

@ -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;
}