From c0bfa2acd4db377791f00e1412a8b0fe358edcf4 Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Fri, 9 May 2003 14:31:40 +0000 Subject: [PATCH] Compile fix for GTK 1.2. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/menu.cpp | 6 ------ src/gtk1/menu.cpp | 6 ------ 2 files changed, 12 deletions(-) diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index f91f77ea38..745649473a 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -1122,10 +1122,6 @@ bool wxMenu::GtkAppend(wxMenuItem *mitem) { GtkWidget *menuItem; -#if defined(USE_MENU_BITMAPS) || !GTK_CHECK_VERSION(1, 2, 0) - bool appended = FALSE; -#endif - // does this item terminate the current radio group? bool endOfRadioGroup = TRUE; @@ -1213,8 +1209,6 @@ bool wxMenu::GtkAppend(wxMenuItem *mitem) gtk_menu_append( GTK_MENU(m_menu), menuItem ); gtk_widget_show( menuItem ); - - appended = TRUE; // We've done this, don't do it again } #endif else // a normal item diff --git a/src/gtk1/menu.cpp b/src/gtk1/menu.cpp index f91f77ea38..745649473a 100644 --- a/src/gtk1/menu.cpp +++ b/src/gtk1/menu.cpp @@ -1122,10 +1122,6 @@ bool wxMenu::GtkAppend(wxMenuItem *mitem) { GtkWidget *menuItem; -#if defined(USE_MENU_BITMAPS) || !GTK_CHECK_VERSION(1, 2, 0) - bool appended = FALSE; -#endif - // does this item terminate the current radio group? bool endOfRadioGroup = TRUE; @@ -1213,8 +1209,6 @@ bool wxMenu::GtkAppend(wxMenuItem *mitem) gtk_menu_append( GTK_MENU(m_menu), menuItem ); gtk_widget_show( menuItem ); - - appended = TRUE; // We've done this, don't do it again } #endif else // a normal item