]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/choice.cpp
compilation problem under Windows fixed (Karsten, you should use a cast when
[wxWidgets.git] / src / gtk / choice.cpp
index ef374c13ad9c2c636381e39e181828f79d3ab141..09af84d007cdba14185c1999f21a953bf4520f73 100644 (file)
@@ -179,9 +179,9 @@ wxString wxChoice::GetStringSelection(void) const
 
 int wxChoice::Number(void) const
 {
-  GtkMenu *menu = GTK_MENU( gtk_option_menu_get_menu( GTK_OPTION_MENU(m_widget) ) );
+  GtkMenuShell *menu_shell = GTK_MENU_SHELL( gtk_option_menu_get_menu( GTK_OPTION_MENU(m_widget) ) );
   int count = 0;
-  GList *child = menu->children;
+  GList *child = menu_shell->children;
   while (child)
   {
     count++;