Bug 567212: Exit after dumping

The intended use of g_irepository_get_option_group is that your
application more transparently supports --introspection-dump; we
should exit so that your app doesn't continue trying to launch.

svn path=/trunk/; revision=1023
This commit is contained in:
Colin Walters 2009-01-12 21:31:45 +00:00
parent ca638d9ecf
commit 2971e35fe6

View File

@ -1174,7 +1174,8 @@ g_irepository_introspect_cb (const char *option_name,
gpointer data,
GError **error)
{
return g_irepository_dump (value, error);
gboolean ret = g_irepository_dump (value, error);
exit (ret ? 0 : 1);
}
static const GOptionEntry introspection_args[] = {