Hi. I'm considering a custom enhancement to gtk+. I'm often wanting to access a widget, given only its name (as given by gtk_widget_set_name ). Currently, I can't see any way to do this. I wondered what people think of the idea of having a function such as GSList * gtk_widget_get_widgets_by_name(char *name); which would return all widgets which have been created with a particular name. Internally, this would mean that gtk+ would have to maintain a hash table. This would be of particular use to applications such as automatic testing of gtk+ apps, where an external agent needs to access a widget, but doesn't have access to the program's symbol table. Do people think this is a good idea, or is there a better way to do this? J' -- PGP Public key ID: 1024D/2DE827B3 fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 See http://wwwkeys.pgp.net or any PGP keyserver for public key.
Attachment:
pgpUVOYaNmpG3.pgp
Description: PGP signature