]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/combobox.cpp
24 bit depth
[wxWidgets.git] / src / gtk / combobox.cpp
index 99e75910c29905834f95edd67f7051250dcd4d0c..6ced6dccaa15fff77c3c654d270f7dfe00fbf34c 100644 (file)
@@ -674,7 +674,7 @@ void wxComboBox::Redo()
 
 void wxComboBox::SelectAll()
 {
-    Select(0, GetLastPosition());
+    SetSelection(0, GetLastPosition());
 }
 
 bool wxComboBox::CanUndo() const
@@ -770,8 +770,15 @@ void wxComboBox::GetSelection( long* from, long* to ) const
     if (IsEditable())
     {
         GtkEditable *editable = GTK_EDITABLE(GTK_COMBO(m_widget)->entry);
+#ifdef __WXGTK20__
+        gint start, end;
+        gtk_editable_get_selection_bounds(editable, & start, & end);
+        *from = start;
+        *to = end;
+#else
         *from = (long) editable->selection_start_pos;
         *to = (long) editable->selection_end_pos;
+#endif
     }
 }