From 9236655b666a55beb4a2ef25bcc111ec0d70cb9e Mon Sep 17 00:00:00 2001 From: Claudio Saavedra Date: Wed, 29 Apr 2009 14:08:44 +0300 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ src/hildon-note.c | 14 ++++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) 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! */ -- 1.7.9.5