Added more protection to the pannable area timeouts
[hildon] / examples / hildon-hvolumebar-timer-example.c
index 69c3d77..77263a8 100644 (file)
@@ -26,7 +26,7 @@
 #include                                        <stdlib.h>
 #include                                        <glib.h>
 #include                                        <gtk/gtk.h>
-#include                                        "hildon.h"
+#include                                        <hildon/hildon.h>
 
 gboolean
 on_idle                                         (void);
@@ -77,7 +77,7 @@ on_idle                                         (void)
         cycle = (cycle + 1) % 3;
     }
 
-    g_timeout_add (2000, (GSourceFunc) on_idle, NULL);
+    gdk_threads_add_timeout (2000, (GSourceFunc) on_idle, NULL);
     return FALSE;
 }
 
@@ -87,7 +87,7 @@ main                                            (int argc,
 {
     hildon_gtk_init (&argc, &argv);
 
-    g_timeout_add (2000, (GSourceFunc) on_idle, NULL);
+    gdk_threads_add_timeout (2000, (GSourceFunc) on_idle, NULL);
 
     gtk_main ();