From 48de8560b85ce0c3d66a2cb20f838de5c1325065 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 18 Aug 2010 11:19:41 +1000 Subject: Avoid deprecated API gtk_selection_clear. --- gtk/ScintillaGTK.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gtk') 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 *) { -- cgit v1.2.3