[brasero] Fix #627005 - Starting brasero with --device=/dev/sr0 floating point exception GTK+ was not ready wh



commit 4e97e8ee9d11cdf720295fa18f3e84fdbd5121ab
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Mon Aug 30 14:53:50 2010 +0200

    Fix #627005 - Starting brasero with --device=/dev/sr0 floating point exception
    GTK+ was not ready while displaying an error

 src/main.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index a7d0e7c..c4a8d7e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -75,6 +75,12 @@ main (int argc, char **argv)
 #endif
 
 	g_thread_init (NULL);
+	g_type_init ();
+
+	/* Though we use gtk_get_option_group we nevertheless want gtk+ to be
+	 * in a usable state to display our error messages while brasero
+	 * specific options are parsed. Otherwise on error that crashes. */
+	gtk_init (&argc, &argv);
 
 	memset (&cmd_line_options, 0, sizeof (cmd_line_options));
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]