[maemo-developers] [maemo-developers] status bar and threaded gtk
From: Mario Ivankovits mario at ops.co.atDate: Mon Jul 24 16:48:17 EEST 2006
- Previous message: [maemo-developers] Hooking into wifi events (up/down)
- Next message: [maemo-developers] hildon_file_chooser_dialog_new wrong directorys
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi! I have written a program which spans a thread which might update gtk widgets from the thread and thus needs to use things like g_thread_init(NULL) gdk_threads_init() gdk_threads_enter() ... gdk_flush() gdk_threads_leave() This program works fine from the commandline using the trick found in bt-blugin to simulate a statusbar environment. But as soon as I really load it to the statusbar using dbus-send from the tutorial my device reboots. I tracked down the problem to the commands above. When I remove them (and also disable the program-code doing gtk things) it works. As soon as I add the methods above again, the device reboots when sending the dbus message to load the plugin. Now my question, how to deal with multithreaded gtk application loaded through the statusbar loading mechanism? When I remove these methods the program seems still to work, so, is the gdk_threads stuff is activated by default in the statusbar? Thanks! Ciao, Mario
- Previous message: [maemo-developers] Hooking into wifi events (up/down)
- Next message: [maemo-developers] hildon_file_chooser_dialog_new wrong directorys
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]