From 914e7f9b0926a62f65c0351963ba533c6dee09f5 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 8 Feb 2013 11:58:19 +0000 Subject: Mac OS text input: removed the Fl::marked_text_length() function that's not necessary. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9816 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_compose.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/Fl_compose.cxx') diff --git a/src/Fl_compose.cxx b/src/Fl_compose.cxx index 47f4e7e3a..8a2909f55 100644 --- a/src/Fl_compose.cxx +++ b/src/Fl_compose.cxx @@ -54,8 +54,8 @@ extern XIC fl_xim_ic; temporary text replaced by other text during the input process. This occurs, e.g., when using dead keys or when entering CJK characters. Text editing widgets should preferentially signal - marked text, usually underlining it. Widgets can call - int Fl::marked_text_length() after having called Fl::compose(int&) + marked text, usually underlining it. Widgets can use + int Fl::compose_state after having called Fl::compose(int&) to obtain the length in bytes of marked text that always finishes at the current insertion point. It's the widget's task to underline marked text. Widgets should also call void Fl::reset_marked_text() when processing FL_UNFOCUS @@ -105,10 +105,6 @@ unsigned char ascii = (unsigned char)e_text[0]; } #ifdef __APPLE__ -int Fl::marked_text_length() { - return (Fl::compose_state ? Fl::compose_state : Fl_X::next_marked_length); - } - static int insertion_point_x = 0; static int insertion_point_y = 0; static int insertion_point_height = 0; -- cgit v1.2.3