[brasero] Add GDK_THREADS_ENTER/LEAVE around the main loop
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [brasero] Add GDK_THREADS_ENTER/LEAVE around the main loop
- Date: Mon, 7 Sep 2009 14:21:05 +0000 (UTC)
commit d6c44f289e8273c699e118ce6c6509b1f5cb85cb
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date: Sun Sep 6 13:25:43 2009 +0200
Add GDK_THREADS_ENTER/LEAVE around the main loop
libbrasero-burn/burn-task.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libbrasero-burn/burn-task.c b/libbrasero-burn/burn-task.c
index 5dba675..98fd7e6 100644
--- a/libbrasero-burn/burn-task.c
+++ b/libbrasero-burn/burn-task.c
@@ -36,6 +36,8 @@
#include <glib-object.h>
#include <glib/gi18n-lib.h>
+#include <gdk/gdk.h>
+
#include "burn-basics.h"
#include "burn-debug.h"
#include "brasero-session.h"
@@ -363,7 +365,11 @@ brasero_task_run_loop (BraseroTask *self,
priv->loop = g_main_loop_new (NULL, FALSE);
BRASERO_BURN_LOG ("entering loop");
+
+ GDK_THREADS_LEAVE ();
g_main_loop_run (priv->loop);
+ GDK_THREADS_ENTER ();
+
BRASERO_BURN_LOG ("got out of loop");
g_main_loop_unref (priv->loop);
priv->loop = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]