Am 2010-04-05 09:06, schrieb Denis Micolani:
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? _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
Try overwriting the TextBuffer and this: http://library.gnome.org/devel/gtkmm/stable/classGtk_1_1TextBuffer.html#a673d6eb5c9dbf67dec2df98b259bea37 _______________________________________________ gtkmm-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gtkmm-list
