GNOME Bugzilla – Bug 58674
Unable to determine when pages are added or removed from a GtkNotebook
Last modified: 2006-03-21 16:45:34 UTC
GtkNotebook does not emit a signal when pages are added or removed from a GtkNotebook. Thus, it is not possible to informa a disabled user when a GtkNotebook has changed.
Discussion in: http://mail.gnome.org/archives/gtk-devel-list/2001-August/msg00071.html The lack of notification on child changes is a fairly major omission, but I think we'll need to wait and deal with this for GTK+-2.2.
Marking AP2 to reflect a11y team's assessment of a11y impact.
GTK+-2.2 ? please let's not slip it to gtk+-2.6 :-) or did this get fixed without anyone noticing? thanks.
Apologies for spam... marking as GNOMEVER2.3 so it appears on the official GNOME bug list :)
I can determine that a tab has been removed by blistening to the parent-set signal on the child of the GtkNotebookPage. I can determine that a tab has been created by checking when "page" property notification is emitted on the GtkNoteBook. Accordingly I am closing as NOTABUG.
I don't think listening for parent-set is considered an acceptable solution in general (though it may do to satisfy the immediate a11y needs until something better is available). Lets keep this open for a little longer. As Owen said above: The lack of notification on child changes is a fairly major omission.
Somewhat similar feature occurs with GtkBox and derivatives. If you use gtk_box_pack_*() functions you don't get any notifications when widgets are added in the box. Only if you use gtk_container_add() the signals are emitted. (Which is as designed, but arguably broken.)
Apologies for spam-- ensuring Sun a11y team are cc'ed on all current a11y bugs. Filter on "SUN A11Y SPAM" to ignore.
We have page-added and page-removed signals now.