+ GtkBin *bin = GTK_BIN( child->data );
+ GtkLabel *label = GTK_LABEL( bin->child );
+ if (item == label->label) return count;
+ count++;
+ child = child->next;
+ }
+
+ wxFAIL_MSG( "wxComboBox: string not found" );
+
+ return -1;
+}
+
+int wxComboBox::GetSelection() const
+{
+ wxCHECK_MSG( m_widget != NULL, -1, "invalid combobox" );
+
+ GtkWidget *list = GTK_COMBO(m_widget)->list;
+
+ GList *selection = GTK_LIST(list)->selection;
+ if (selection)
+ {
+ GList *child = GTK_LIST(list)->children;
+ int count = 0;
+ while (child)
+ {
+ if (child->data == selection->data) return count;
+ count++;
+ child = child->next;
+ }