GNOME Bugzilla – Bug 337306
Add a GtkMessageDialog::image property
Last modified: 2011-02-04 16:10:23 UTC
Message dialogs are currently limiting the image that can be displayed to gtk-info, gtk-warning, gtk-error stock IDs. It is often useful to use a different dialog image. Adding a GtkMessageDialog::image property could allow setting the image contents to whatever the application wishes. NOTE: Currently gtk_message_dialog_get_message_type (the accessor for the "message-type" property) expects the image stock ID to be one of the above, and asserts not implemented otherwise. This should be changed to use the GtkMessageType passed to the constructor.
Created attachment 64641 [details] [review] patch for discussion How about this? I didn't want to add too much code, so I made only one property which can accept both a stock ID or an icon name.
This looks great to me. In the future it might be nice to have access to the GtkImage widget itself, for things like animations.
2006-05-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkmessagedialog.[hc]: Add an image property. (#337306, Alex Graveley)