From: Claudio Saavedra Date: Wed, 29 Apr 2009 11:08:44 +0000 (+0300) Subject: Set "icon" property in hildon_note_new_information/note_with_icon_name X-Git-Tag: 2.1.70-1~12 X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=9236655b666a55beb4a2ef25bcc111ec0d70cb9e;p=hildon Set "icon" property in hildon_note_new_information/note_with_icon_name * src/hildon-note.c (hildon_note_new_confirmation_with_icon_name), (hildon_note_new_information_with_icon_name): Set the "icon" property to preserve soundness. --- diff --git a/ChangeLog b/ChangeLog index 4837a36..8b46912 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2009-04-29 Claudio Saavedra + * src/hildon-note.c (hildon_note_new_confirmation_with_icon_name), + (hildon_note_new_information_with_icon_name): Set the "icon" property + to preserve soundness. + +2009-04-29 Claudio Saavedra + * src/hildon-font-selection-dialog.c (hildon_font_selection_dialog_set_property): Fail when the "family" property is set to NULL. diff --git a/src/hildon-note.c b/src/hildon-note.c index 8f4ca91..814e456 100644 --- a/src/hildon-note.c +++ b/src/hildon-note.c @@ -848,7 +848,12 @@ hildon_note_new_confirmation_with_icon_name (GtkWindow *parent, const gchar *description, const gchar *icon_name) { - return hildon_note_new_confirmation (parent, description); + GtkWidget *dialog; + + dialog = hildon_note_new_confirmation (parent, description); + g_object_set (dialog, "icon", icon_name); + + return dialog; } /** @@ -907,7 +912,12 @@ hildon_note_new_information_with_icon_name (GtkWindow * parent, const gchar *description, const gchar *icon_name) { - return hildon_note_new_information (parent, description); + GtkWidget *dialog; + + dialog = hildon_note_new_information (parent, description); + g_object_set (dialog, "icon", icon_name); + + return dialog; } /* FIXME This documentation string LIES! */