X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b4071e913e85e35024ee5883a0a046f0fd6332bf..520e470fdd0daef09c77938db642e4583933c90d:/src/gtk/combobox.cpp diff --git a/src/gtk/combobox.cpp b/src/gtk/combobox.cpp index f6a53acda1..9db6be50b8 100644 --- a/src/gtk/combobox.cpp +++ b/src/gtk/combobox.cpp @@ -300,19 +300,31 @@ void wxComboBox::SetValue( const wxString& value ) void wxComboBox::Copy(void) { GtkWidget *entry = GTK_COMBO(m_widget)->entry; +#if (GTK_MINOR_VERSION == 1) + gtk_editable_copy_clipboard( GTK_EDITABLE(entry) ); +#else gtk_editable_copy_clipboard( GTK_EDITABLE(entry), 0 ); +#endif } void wxComboBox::Cut(void) { GtkWidget *entry = GTK_COMBO(m_widget)->entry; +#if (GTK_MINOR_VERSION == 1) + gtk_editable_cut_clipboard( GTK_EDITABLE(entry) ); +#else gtk_editable_cut_clipboard( GTK_EDITABLE(entry), 0 ); +#endif } void wxComboBox::Paste(void) { GtkWidget *entry = GTK_COMBO(m_widget)->entry; +#if (GTK_MINOR_VERSION == 1) + gtk_editable_paste_clipboard( GTK_EDITABLE(entry) ); +#else gtk_editable_paste_clipboard( GTK_EDITABLE(entry), 0 ); +#endif } void wxComboBox::SetInsertionPoint( long pos )