diff options
| author | nyamatongwe <devnull@localhost> | 2010-08-18 11:19:41 +1000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2010-08-18 11:19:41 +1000 |
| commit | 48de8560b85ce0c3d66a2cb20f838de5c1325065 (patch) | |
| tree | c118e83699596345815ee2e0cae71e10e7b30347 | |
| parent | 9cf8a9fdd2e24860c5fac8e6b16df06c89a5cf5c (diff) | |
| download | scintilla-mirror-48de8560b85ce0c3d66a2cb20f838de5c1325065.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 *) { |
