aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-08-18 11:19:41 +1000
committernyamatongwe <unknown>2010-08-18 11:19:41 +1000
commit622ab914257d6106de604d4e91c5c686eb5e3272 (patch)
tree420d01d4c51493f17d5046c4f5415755e992ff21
parentd4acea45b1d0f2f31adda7f08d4292adc748a0d7 (diff)
downloadscintilla-mirror-622ab914257d6106de604d4e91c5c686eb5e3272.tar.gz
Avoid deprecated API gtk_selection_clear.
-rw-r--r--gtk/ScintillaGTK.cxx5
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 *) {