aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/ScintillaGTK.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-11-19 23:50:32 +0000
committernyamatongwe <unknown>2001-11-19 23:50:32 +0000
commit824cf841dc8c3372666bdc350a20dc1f3bc7492a (patch)
tree743495ff4d07a8ff0c9177f773d2eec5dcabe738 /gtk/ScintillaGTK.cxx
parent1c44c10848195b34f569ed1281b087a7d22cb174 (diff)
downloadscintilla-mirror-824cf841dc8c3372666bdc350a20dc1f3bc7492a.tar.gz
Added virtual GetCtrlID method so that the ID can change dynamically
on Windoes when caused by SetWindowLong.
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
-rw-r--r--gtk/ScintillaGTK.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 13271bcd7..cfaa70971 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -734,19 +734,19 @@ void ScintillaGTK::ReconfigureScrollBars() {
void ScintillaGTK::NotifyChange() {
gtk_signal_emit(GTK_OBJECT(sci), scintilla_signals[COMMAND_SIGNAL],
- Platform::LongFromTwoShorts(ctrlID, SCEN_CHANGE), PWidget(wMain));
+ Platform::LongFromTwoShorts(GetCtrlID(), SCEN_CHANGE), PWidget(wMain));
}
void ScintillaGTK::NotifyFocus(bool focus) {
gtk_signal_emit(GTK_OBJECT(sci), scintilla_signals[COMMAND_SIGNAL],
- Platform::LongFromTwoShorts(ctrlID, focus ? SCEN_SETFOCUS : SCEN_KILLFOCUS), PWidget(wMain));
+ Platform::LongFromTwoShorts(GetCtrlID(), focus ? SCEN_SETFOCUS : SCEN_KILLFOCUS), PWidget(wMain));
}
void ScintillaGTK::NotifyParent(SCNotification scn) {
scn.nmhdr.hwndFrom = PWidget(wMain);
- scn.nmhdr.idFrom = ctrlID;
+ scn.nmhdr.idFrom = GetCtrlID();
gtk_signal_emit(GTK_OBJECT(sci), scintilla_signals[NOTIFY_SIGNAL],
- ctrlID, &scn);
+ GetCtrlID(), &scn);
}
void ScintillaGTK::NotifyKey(int key, int modifiers) {