// Modified by:
// RCS-ID: $Id$
// Copyright: (c) Robert Roebling
-// Licence: wxWidgets licence
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#if wxUSE_SPINBTN
#include "wx/utils.h"
-
-#include <math.h>
-
+#include "wx/math.h"
#include "wx/gtk/private.h"
//-----------------------------------------------------------------------------
// "value_changed"
//-----------------------------------------------------------------------------
+extern "C" {
static void gtk_spinbutt_callback( GtkWidget *WXUNUSED(widget), wxSpinButton *win )
{
if (g_isIdle) wxapp_install_idle_handler();
win->GetEventHandler()->ProcessEvent( event2 );
}
}
+}
//-----------------------------------------------------------------------------
// wxSpinButton
return GTK_SPIN_BUTTON(m_widget)->panel == window;
}
-void wxSpinButton::ApplyWidgetStyle()
-{
- SetWidgetStyle();
- gtk_widget_set_style( m_widget, m_widgetStyle );
-}
-
wxSize wxSpinButton::DoGetBestSize() const
{
- return wxSize(15, 26);
+ wxSize best(15, 26); // FIXME
+ CacheBestSize(best);
+ return best;
}
// static