2008-11-19 Claudio Saavedra <csaavedra@igalia.com>
authorClaudio Saavedra <csaavedra@igalia.com>
Wed, 19 Nov 2008 19:44:15 +0000 (19:44 +0000)
committerClaudio Saavedra <csaavedra@igalia.com>
Wed, 19 Nov 2008 19:44:15 +0000 (19:44 +0000)
Patch contributed by Adam Endrodi (adam.endrodi@blumsoft.eu)

* src/hildon-note.c: (hildon_note_init), (hildon_note_realize): Set properly
the WINDOW_TYPE property.

Fixes: NB#92897 (HildonNotes have incorrect WINDOW_TYPE)

ChangeLog
src/hildon-note.c

index 09670aa..305e525 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2008-11-19  Claudio Saavedra  <csaavedra@igalia.com>
+
+       Patch contributed by Adam Endrodi (adam.endrodi@blumsoft.eu)
+
+       * src/hildon-note.c: (hildon_note_init), (hildon_note_realize): Set properly
+       the WINDOW_TYPE property.
+
+       Fixes: NB#92897 (HildonNotes have incorrect WINDOW_TYPE)
+
 2008-11-19  Alberto Garcia  <agarcia@igalia.com>
 
        * doc/gtk-doc.make:
index 3eea81f..c29f4bf 100644 (file)
@@ -379,6 +379,9 @@ hildon_note_init                                (HildonNote *dialog)
 
     gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
     gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
+
+    /* We use special hint to turn the note into information notification. */
+    gtk_window_set_type_hint (GTK_WINDOW (dialog), GDK_WINDOW_TYPE_HINT_NOTIFICATION);
 }
 
 
@@ -436,9 +439,6 @@ hildon_note_realize                             (GtkWidget *widget)
         priv->sound_signal_handler = g_signal_connect_after(widget, 
                 "expose-event", G_CALLBACK (sound_handling), NULL);
 
-    /* We use special hint to turn the note into information notification. */
-    gdk_window_set_type_hint (widget->window, GDK_WINDOW_TYPE_HINT_NOTIFICATION);
-
     /* Set the _HILDON_NOTIFICATION_TYPE property so Matchbox places the window correctly */
     display = gdk_drawable_get_display (widget->window);
     atom = gdk_x11_get_xatom_by_name_for_display (display, "_HILDON_NOTIFICATION_TYPE");