Gtk::TextView::on_insert_at_cursor(const Glib::ustring& str)



Hi there,
I have this class derived from Gtk::TextView and what I'd like to do
is basically intercepting incoming data from the user so that I can
store it using Gtk::TextBuffer::insert_with_tag() instead of
Gtk::TextBuffer::insert() (AFAIK that's the one Gtk::TextView is
actually using).
Looking at Gtk::TextView's interface I noticed the protected function
on_insert_at_cursor (const Glib::ustring&  str), looks like this gets
called every time the user insert some text at the current cursor
position, exactly what I need!
Unfortunately, by deriving my own class from Gtk::TextView and
overriding the virtual protected member on_insert_at_cursor (const
Glib::ustring&  str), this one never gets called, is it broken down?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]