Re: Gtk::TextView::on_insert_at_cursor(const Glib::ustring& str)
- From: michi7x7 <mailing-lists michi7x7 de>
- To: gtkmm-list gnome org
- Subject: Re: Gtk::TextView::on_insert_at_cursor(const Glib::ustring& str)
- Date: Mon, 05 Apr 2010 11:17:41 +0200
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
gtkmm-list gnome org
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]