Permalink
Browse files

panel: use gdk_threads_enter() as the documentation recommends

  • Loading branch information...
1 parent 2dde9fd commit 75f5e575e692818869cb3d7fded6f42c735f6954 Henry Gebhardt committed May 18, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/panel.c
View
@@ -1595,6 +1595,7 @@ int main(int argc, char *argv[], char *env[])
g_thread_init(NULL);
gdk_threads_init();
+ gdk_threads_enter();
gtk_init(&argc, &argv);
@@ -1693,6 +1694,8 @@ int main(int argc, char *argv[], char *env[])
if( is_restarting )
goto restart;
+ gdk_threads_leave();
+
g_object_unref(win_grp);
g_object_unref(fbev);

0 comments on commit 75f5e57

Please sign in to comment.