aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ScintillaBase.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-10-12 01:28:38 +0000
committernyamatongwe <unknown>2001-10-12 01:28:38 +0000
commit8d451ecb6d91124b2f6de24f57fc508884ab5bfa (patch)
tree3c45c726d02bb3d57a58d11dc930f16316653cfe /src/ScintillaBase.cxx
parente36d0b8817fcdb6b4ba2cd0f09e34791d652818c (diff)
downloadscintilla-mirror-8d451ecb6d91124b2f6de24f57fc508884ab5bfa.tar.gz
Patch from John to allow double-clicking in autocompletion lists on GTK+.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r--src/ScintillaBase.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index 75a8ffffa..f938a1f4d 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -173,6 +173,11 @@ int ScintillaBase::KeyCommand(unsigned int iMessage) {
return Editor::KeyCommand(iMessage);
}
+void ScintillaBase::AutoCompleteDoubleClick(void* p) {
+ ScintillaBase* sci = reinterpret_cast<ScintillaBase*>(p);
+ sci->AutoCompleteCompleted();
+}
+
void ScintillaBase::AutoCompleteStart(int lenEntered, const char *list) {
//Platform::DebugPrintf("AutoComplete %s\n", list);
ct.CallTipCancel();
@@ -222,6 +227,7 @@ void ScintillaBase::AutoCompleteStart(int lenEntered, const char *list) {
ac.lb.SetPositionRelative(rcac, wMain);
ac.lb.SetFont(vs.styles[STYLE_DEFAULT].font);
ac.lb.SetAverageCharWidth(vs.styles[STYLE_DEFAULT].aveCharWidth);
+ ac.lb.SetDoubleClickAction(AutoCompleteDoubleClick, this);
ac.SetList(list);