diff options
| author | nyamatongwe <unknown> | 2010-08-18 11:19:41 +1000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2010-08-18 11:19:41 +1000 |
| commit | 622ab914257d6106de604d4e91c5c686eb5e3272 (patch) | |
| tree | 420d01d4c51493f17d5046c4f5415755e992ff21 | |
| parent | d4acea45b1d0f2f31adda7f08d4292adc748a0d7 (diff) | |
| download | scintilla-mirror-622ab914257d6106de604d4e91c5c686eb5e3272.tar.gz | |
Avoid deprecated API gtk_selection_clear.
| -rw-r--r-- | gtk/ScintillaGTK.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 996d99aff..cf0dca5f9 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2191,7 +2191,10 @@ gint ScintillaGTK::SelectionClear(GtkWidget *widget, GdkEventSelection *selectio ScintillaGTK *sciThis = ScintillaFromWidget(widget); //Platform::DebugPrintf("Selection clear\n"); sciThis->UnclaimSelection(selection_event); - return gtk_selection_clear(widget, selection_event); + if (GTK_WIDGET_CLASS(sciThis->parentClass)->selection_clear_event) { + return GTK_WIDGET_CLASS(sciThis->parentClass)->selection_clear_event(widget, selection_event); + } + return TRUE; } void ScintillaGTK::DragBegin(GtkWidget *, GdkDragContext *) { |
