// Name: combobox.cpp
// Purpose:
// Author: Robert Roebling
-// Created: 01/02/97
-// Id:
-// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
+// Id: $id$
+// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
gtk_widget_get_style( m_widget ) ) );
}
+ if (m_backgroundColour != wxNullColour)
+ {
+ GtkBin *bin = GTK_BIN( list_item );
+ SetBackgroundColourHelper( bin->child->window );
+ }
+
gtk_signal_connect( GTK_OBJECT(list_item), "select",
GTK_SIGNAL_FUNC(gtk_combo_clicked_callback), (gpointer)this );
(window == GTK_COMBO(m_widget)->button->window ) );
}
+void wxComboBox::SetBackgroundColour( const wxColour &colour )
+{
+ wxWindow::SetBackgroundColour( colour );
+
+ GtkWidget *list = GTK_COMBO(m_widget)->list;
+
+ GList *child = GTK_LIST(list)->children;
+ while (child)
+ {
+ GtkBin *bin = (GtkBin*) child->data;
+ SetBackgroundColourHelper( bin->child->window );
+ child = child->next;
+ }
+}
+