X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/150e31d2088687cbfbab548f9e98918f8683d9b5..2c15c98b3361b6b18bc44ac1c63a10fd9dd9428f:/src/gtk1/combobox.cpp diff --git a/src/gtk1/combobox.cpp b/src/gtk1/combobox.cpp index 99e75910c2..6ced6dccaa 100644 --- a/src/gtk1/combobox.cpp +++ b/src/gtk1/combobox.cpp @@ -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 } }