#if wxUSE_CHOICE
#include "wx/choice.h"
-#include "wx/combobox.h"
#ifndef WX_PRECOMP
#include "wx/arrstr.h"
extern "C" {
static void gtk_choice_clicked_callback( GtkWidget *WXUNUSED(widget), wxChoice *choice )
{
- if (g_isIdle)
- wxapp_install_idle_handler();
-
if (!choice->m_hasVMT) return;
if (g_blockEventsOnDrag) return;
int n, const wxString choices[],
long style, const wxValidator& validator, const wxString &name )
{
- m_needParent = true;
-#if (GTK_MINOR_VERSION > 0)
- m_acceptsFocus = true;
-#endif
-
if (!PreCreation( parent, pos, size ) ||
!CreateBase( parent, id, pos, size, style, validator, name ))
{
m_parent->DoAddChild( this );
PostCreation(size);
- SetBestSize(size); // need this too because this is a wxControlWithItems
+ SetInitialSize(size); // need this too because this is a wxControlWithItems
return true;
}
return ret;
}
-bool wxChoice::IsOwnGtkWindow( GdkWindow *window )
+GdkWindow *wxChoice::GTKGetWindow(wxArrayGdkWindows& WXUNUSED(windows)) const
{
return GTK_BUTTON(m_widget)->event_window;
}