GNOME Bugzilla – Bug 309180
gtk.MessageDialog exposes private attributes
Last modified: 2009-02-22 21:22:08 UTC
Please describe the problem: gtk.MessageDialog exposes the 'image' and 'label' widgets which are private attributes which are not intended to be made public. In the past it was useful to have access to them because it allowed you to change the image and label (message) displayed in the MessageDialog. But with GTK+ 2.6 we now have MessageDialog.set_markup () MessageDialog.format_secondary_markup () which let you change the label/message, and MessageDialog.set_property ('message-type', msg_type) which lets you change the image. So I don't think that access to the private attributes 'image' and 'label' is needed anymore and they should be removed (or deprecated). Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Access to these attributes should be deprecated, but they can't be removed due to API compatibility issues.
I've added deprecation warnings accessing those fields, since gtk+-2.14 we also have set_image, so I've added that one in the deprecation text.