Commit 1040df09 authored by Michael Catanzaro's avatar Michael Catanzaro Committed by Iulian Radu

Crash if clutter initialization fails

This way we trigger distro bug report tools, rather than leaving users
to wonder "what's clutter?"

https://bugzilla.gnome.org/show_bug.cgi?id=762054
parent d4f639f1
......@@ -1055,15 +1055,7 @@ public class Nibbles : Gtk.Application
}
catch (Error e)
{
var dialog = new Gtk.MessageDialog (null,
Gtk.DialogFlags.MODAL,
Gtk.MessageType.ERROR,
Gtk.ButtonsType.NONE,
"Unable to initialize Clutter:\n%s", e.message);
dialog.set_title (Environment.get_application_name ());
dialog.run ();
dialog.destroy ();
return Posix.EXIT_FAILURE;
error ("Unable to initialize Clutter: %s", e.message);
}
return new Nibbles ().run (args);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment