diff options
author | nyamatongwe <devnull@localhost> | 2009-07-03 06:36:25 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-07-03 06:36:25 +0000 |
commit | 1d772be5dea42ff8cd8632806589bbc92effec35 (patch) | |
tree | 23fca327b0795859289d499439b4d6968810f2a8 /gtk/ScintillaGTK.cxx | |
parent | 603237d7ed409ff08a0b92aa703be8c6e469795a (diff) | |
download | scintilla-mirror-1d772be5dea42ff8cd8632806589bbc92effec35.tar.gz |
Use screen point for caret that includes virtual spcace so that, for
example, the IME appears near the caret when the caret is in virtual space.
Changed LocationFromPosition to work on a SelectionPosition and
added convenience method for finding screen point of main caret.
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
-rw-r--r-- | gtk/ScintillaGTK.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 9d7cc02ee..11b466fef 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2224,7 +2224,7 @@ void ScintillaGTK::PreeditChangedThis() { gint x, y; gdk_window_get_origin((PWidget(wText))->window, &x, &y); - Point pt = LocationFromPosition(sel.MainCaret()); + Point pt = PointMainCaret(); if (pt.x < 0) pt.x = 0; if (pt.y < 0) @@ -2311,7 +2311,7 @@ void ScintillaGTK::Draw(GtkWidget *widget, GdkRectangle *area) { } #ifdef INTERNATIONAL_INPUT - Point pt = sciThis->LocationFromPosition(sciThis->sel.MainCaret()); + Point pt = sciThis->PointMainCaret(); pt.y += sciThis->vs.lineHeight - 2; if (pt.x < 0) pt.x = 0; if (pt.y < 0) pt.y = 0; |