Replace g_idle_add/g_timeout_add with their gdk_threads counterparts
[hildon] / hildon / hildon-note.c
index 14c77c1..8401c55 100644 (file)
@@ -515,7 +515,7 @@ label_size_request                              (GtkWidget      *label,
                                                  GtkRequisition *req,
                                                  GtkWidget      *note)
 {
-    gint note_height = MAX (HILDON_INFORMATION_NOTE_MIN_HEIGHT, req->height);
+    gint note_height = MAX (HILDON_INFORMATION_NOTE_MIN_HEIGHT, req->height + 2*HILDON_MARGIN_DOUBLE);
     g_object_set (note, "height-request", note_height, NULL);
 }
 
@@ -1131,7 +1131,7 @@ on_show_cb                                      (GtkWidget *widget,
     HildonNotePrivate *priv;
 
     priv = HILDON_NOTE_GET_PRIVATE (widget);
-    priv->idle_handler = g_idle_add (sound_handling, widget);
+    priv->idle_handler = gdk_threads_add_idle (sound_handling, widget);
 }
 
 /* We play a system sound when the note comes visible */