#include "wx/settings.h"
#include "wx/intl.h"
-#include "gdk/gdk.h"
-#include "gtk/gtk.h"
+#include <gdk/gdk.h>
+#include <gtk/gtk.h>
//-----------------------------------------------------------------------------
// idle system
// make it more useable
gtk_combo_set_use_arrows_always(GTK_COMBO(m_widget), TRUE);
- wxSize newSize = size;
- if (newSize.x == -1)
- newSize.x = 100;
- if (newSize.y == -1)
- newSize.y = 26;
- SetSize( newSize.x, newSize.y );
+ SetSizeOrDefault( size );
GtkWidget *list = GTK_COMBO(m_widget)->list;
{
event.Skip();
- return;
-
+#if 0
int w = 21;
gtk_widget_set_usize( GTK_COMBO(m_widget)->entry, m_width-w-1, m_height );
gtk_widget_set_uposition( GTK_COMBO(m_widget)->button, m_x+m_width-w, m_y );
gtk_widget_set_usize( GTK_COMBO(m_widget)->button, w, m_height );
+#endif // 0
}
void wxComboBox::ApplyWidgetStyle()
(window == GTK_COMBO(m_widget)->button->window ) );
}
+wxSize wxComboBox::DoGetBestSize() const
+{
+ return wxSize(100, 26);
+}
+
#endif