Commit 05dd38ce authored by Bastien Nocera's avatar Bastien Nocera

user-accounts: Remove all uses of exit()

We shouldn't use exit() in a panel plugin.
parent 0bbdc872
......@@ -444,7 +444,7 @@ um_account_dialog_new (void)
if (!gtk_builder_add_from_file (builder, filename, &error)) {
g_error ("%s", error->message);
g_error_free (error);
exit (1);
return NULL;
}
um = g_new0 (UmAccountDialog, 1);
......
......@@ -580,7 +580,7 @@ enroll_fingerprints (GtkWindow *parent,
if (!gtk_builder_add_from_file (dialog, filename, &error)) {
g_error ("%s", error->message);
g_error_free (error);
exit (1);
return;
}
data->dialog = dialog;
......
......@@ -363,7 +363,7 @@ um_language_chooser_new (void)
if (!gtk_builder_add_from_file (builder, filename, &error)) {
g_warning ("failed to load language chooser: %s", error->message);
g_error_free (error);
exit (1);
return NULL;
}
chooser = (GtkWidget *) gtk_builder_get_object (builder, "dialog");
......@@ -443,7 +443,7 @@ um_language_dialog_new (void)
if (!gtk_builder_add_from_file (builder, filename, &error)) {
g_error ("%s", error->message);
g_error_free (error);
exit (1);
return NULL;
}
um = g_new0 (UmLanguageDialog, 1);
......
......@@ -624,7 +624,7 @@ um_password_dialog_new (void)
if (!gtk_builder_add_from_file (builder, filename, &error)) {
g_error ("%s", error->message);
g_error_free (error);
exit (1);
return NULL;
}
um = g_new0 (UmPasswordDialog, 1);
......
......@@ -1221,7 +1221,7 @@ um_user_panel_init (UmUserPanel *self)
if (!gtk_builder_add_from_file (d->builder, filename, &error)) {
g_error ("%s", error->message);
g_error_free (error);
exit (1);
return;
}
setup_main_window (d);
......
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