GTK threads cleanup

This commit is contained in:
Oliver Duis
2011-07-04 08:11:34 +02:00
parent a24cba937d
commit 44d1d18b3c
20 changed files with 108 additions and 216 deletions

View File

@@ -21,12 +21,8 @@
#include <rtwindow.h>
#include <safegtk.h>
int fbinit (void* data) {
gdk_threads_enter ();
int FilePanelInitUI (void* data) {
((FilePanel*)data)->init ();
gdk_threads_leave ();
return 0;
}
@@ -112,7 +108,7 @@ FilePanel::FilePanel () : parent(NULL) {
fileCatalog->setFileSelectionChangeListener (tpc);
fileCatalog->setFileSelectionListener (this);
g_idle_add (fbinit, this);
g_idle_add (FilePanelInitUI, this);
show_all ();
}