Set "icon" property in hildon_note_new_information/note_with_icon_name
authorClaudio Saavedra <csaavedra@igalia.com>
Wed, 29 Apr 2009 11:08:44 +0000 (14:08 +0300)
committerClaudio Saavedra <csaavedra@igalia.com>
Wed, 29 Apr 2009 16:42:07 +0000 (19:42 +0300)
* 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
src/hildon-note.c

index 4837a36..8b46912 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2009-04-29  Claudio Saavedra  <csaavedra@igalia.com>
 
+       * 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  <csaavedra@igalia.com>
+
        * src/hildon-font-selection-dialog.c
        (hildon_font_selection_dialog_set_property): Fail when the "family"
        property is set to NULL.
index 8f4ca91..814e456 100644 (file)
@@ -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! */