[seahorse-plugins] Fixed crash in seahorse-preferences.
- From: Adam Schreiber <sadam src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [seahorse-plugins] Fixed crash in seahorse-preferences.
- Date: Sun, 30 Aug 2009 11:10:35 +0000 (UTC)
commit 12b5836dce0ea9a74c603e180d330675e14f8f2b
Author: Pablo Castellano <pablog ubuntu gmail com>
Date: Sun Aug 23 20:53:07 2009 +0200
Fixed crash in seahorse-preferences.
seahorse-preferences now checks for invalid
arguments to avoid crashing.
plugins/nautilus/seahorse-pgp-preferences.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plugins/nautilus/seahorse-pgp-preferences.c b/plugins/nautilus/seahorse-pgp-preferences.c
index f64345a..fa3bc5b 100644
--- a/plugins/nautilus/seahorse-pgp-preferences.c
+++ b/plugins/nautilus/seahorse-pgp-preferences.c
@@ -52,6 +52,7 @@ main (int argc, char **argv)
{
SeahorseWidget *swidget;
GOptionContext *octx = NULL;
+ GError *error = NULL;
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
@@ -60,7 +61,11 @@ main (int argc, char **argv)
octx = g_option_context_new ("");
g_option_context_add_main_entries (octx, options, GETTEXT_PACKAGE);
- gtk_init_with_args (&argc, &argv, _("Encryption Preferences"), (GOptionEntry *) options, GETTEXT_PACKAGE, NULL);
+ if (!gtk_init_with_args (&argc, &argv, _("Encryption Preferences"), (GOptionEntry *) options, GETTEXT_PACKAGE, &error)) {
+ g_printerr ("seahorse-preferences: %s\n", error->message);
+ g_error_free (error);
+ exit (1);
+ }
/* Insert Icons into Stock */
seahorse_gtkstock_init();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]