Signal inside widget subclass



Hi:
I have this design issue: Iâm kinda newbie with gtk development, so sorry is this is the first line on some mystery tutorial out there .

Iâm subclassing a Gtk.TextBuffer and I want to know inside the widget code when the âchangedâ signal is emitted. I know I always can connect a callback to the signal, that why they exist anyway, but that sound like something I wouldn't do inside the widget.

Is it correct ? At least from the Gtk development/design point view. It works, really well, my point is purely about design, maybe there a better and prettier way of doing this.

Thxs



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