GNOME Bugzilla – Bug 59803
GtkEditable needs signals
Last modified: 2011-02-04 16:09:25 UTC
When the new GtkEditable interface first appeared, you couldn't have signals on interfaces. This has since changed. However, the editable signals ("insert_text", "delete_text", "changed" et al.) are still on the objects, instead of the interface. This should be changed at some point.
Pretty fast to do, and probably important to fix.
would a new "interface signal class closure" type need to be added to libgobject for this? One that would take an interface type and offset into the vtable to use as the class closurure function. This should make signals on interfaces quite easy to use/create.
Fixed in CVS: Wed Oct 3 23:47:25 Kristian Rietveld <kristian@planet.nl> * gtk/gtkeditable.[ch]: move insert_text and delete_text virtual functions to do_insert_text and do_delete_text, add signals insert_text, delete_text and changed * gtk/gtkentry.[ch]: remove signals insert_text, delete_text and changed. Updates to match new situation. * gtk/gtkspinbutton.c: updates to match new situation * gtk/gtkoldeditable.h: remove signals changed, insert_text and delete_text * gtk/gtkoldeditable.c: updates to match new situation * gtk/gtktext.c: updates to match new situation Fixes bug #59803