projects
/
hildon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure that all timeouts in HildonBanner are removed
[hildon]
/
examples
/
hildon-hvolumebar-timer-example.c
diff --git
a/examples/hildon-hvolumebar-timer-example.c
b/examples/hildon-hvolumebar-timer-example.c
index
c3336b2
..
77263a8
100644
(file)
--- a/
examples/hildon-hvolumebar-timer-example.c
+++ b/
examples/hildon-hvolumebar-timer-example.c
@@
-26,7
+26,7
@@
#include <stdlib.h>
#include <glib.h>
#include <gtk/gtk.h>
#include <stdlib.h>
#include <glib.h>
#include <gtk/gtk.h>
-#include "hildon.h"
+#include <hildon/hildon.h>
gboolean
on_idle (void);
gboolean
on_idle (void);
@@
-77,17
+77,17
@@
on_idle (void)
cycle = (cycle + 1) % 3;
}
cycle = (cycle + 1) % 3;
}
- g_timeout_add (2000, (GSourceFunc) on_idle, NULL);
+ gdk_threads_add_timeout (2000, (GSourceFunc) on_idle, NULL);
return FALSE;
}
int
main (int argc,
return FALSE;
}
int
main (int argc,
- char **args)
+ char **argv)
{
{
- gtk_init (&argc, &args);
+ hildon_gtk_init (&argc, &argv);
- g_timeout_add (2000, (GSourceFunc) on_idle, NULL);
+ gdk_threads_add_timeout (2000, (GSourceFunc) on_idle, NULL);
gtk_main ();
gtk_main ();