aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video.c b/src/video.c
index 52c2a94..7a5ff8f 100644
--- a/src/video.c
+++ b/src/video.c
@@ -96,6 +96,7 @@ error_cb (OwlVideoWidget *video_widget,
{
GtkWidget *dialog;
+ gdk_threads_enter();
dialog = gtk_message_dialog_new (data->window,
GTK_DIALOG_NO_SEPARATOR,
GTK_MESSAGE_ERROR,
@@ -103,6 +104,7 @@ error_cb (OwlVideoWidget *video_widget,
error->message);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
+ gdk_threads_leave();
}
/**
@@ -606,7 +608,9 @@ main (int argc, char **argv)
gtk_widget_show_all (GTK_WIDGET (data->window));
+ gdk_threads_enter();
gtk_main ();
+ gdk_threads_leave();
/**
* Cleanup.