]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/combobox.cpp
end label editing if the control loses focus (slightly modified patch 1084592)
[wxWidgets.git] / src / gtk1 / combobox.cpp
index 9a1c2100bbc354794e9263936bc3d4800626947b..6ced6dccaa15fff77c3c654d270f7dfe00fbf34c 100644 (file)
@@ -769,8 +769,8 @@ void wxComboBox::GetSelection( long* from, long* to ) const
 {
     if (IsEditable())
     {
-#ifdef __WXGTK20__
         GtkEditable *editable = GTK_EDITABLE(GTK_COMBO(m_widget)->entry);
+#ifdef __WXGTK20__
         gint start, end;
         gtk_editable_get_selection_bounds(editable, & start, & end);
         *from = start;