diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-01 10:03:28 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-01 10:05:37 +0800 |
commit | 4ce3d9c321888226b2bcbf67e189261d0edb5a53 (patch) | |
tree | 40f96a8968fa7bd956a5a72ab61b27ab5f7f0761 /addressbook/tools/evolution-addressbook-export.c | |
parent | 1c198bd71100c3c0af0aa1d80bb0e1f51918c4f2 (diff) | |
download | gsoc2013-evolution-4ce3d9c321888226b2bcbf67e189261d0edb5a53.tar gsoc2013-evolution-4ce3d9c321888226b2bcbf67e189261d0edb5a53.tar.gz gsoc2013-evolution-4ce3d9c321888226b2bcbf67e189261d0edb5a53.tar.bz2 gsoc2013-evolution-4ce3d9c321888226b2bcbf67e189261d0edb5a53.tar.lz gsoc2013-evolution-4ce3d9c321888226b2bcbf67e189261d0edb5a53.tar.xz gsoc2013-evolution-4ce3d9c321888226b2bcbf67e189261d0edb5a53.tar.zst gsoc2013-evolution-4ce3d9c321888226b2bcbf67e189261d0edb5a53.zip |
Bug 580892 – Kill libgnomeui/gnome-app and gnome-app-helper
The only remaining case is widgets/test/test-dropdown-button.c, but this
file will be removed when the kill-bonobo branch is merged.
Diffstat (limited to 'addressbook/tools/evolution-addressbook-export.c')
-rw-r--r-- | addressbook/tools/evolution-addressbook-export.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/addressbook/tools/evolution-addressbook-export.c b/addressbook/tools/evolution-addressbook-export.c index 38a73b7b02..bfcaca980c 100644 --- a/addressbook/tools/evolution-addressbook-export.c +++ b/addressbook/tools/evolution-addressbook-export.c @@ -25,9 +25,6 @@ #include <string.h> #include <glib.h> #include <glib/gi18n.h> -#include <bonobo-activation/bonobo-activation.h> -#include <bonobo/bonobo-main.h> -#include <libgnome/gnome-init.h> #include <libebook/e-book.h> @@ -71,8 +68,8 @@ int main (int argc, char **argv) { ActionContext actctx; - GnomeProgram *program; GOptionContext *context; + GError *error = NULL; int current_action = ACTION_NOTHING; int IsCSV = FALSE; @@ -85,10 +82,11 @@ main (int argc, char **argv) context = g_option_context_new (NULL); g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE); - program = gnome_program_init ( - PACKAGE, VERSION, GNOME_BONOBO_MODULE, argc, argv, - GNOME_PARAM_GOPTION_CONTEXT, context, - GNOME_PARAM_NONE); + if (!g_option_context_parse (context, &argc, &argv, &error)) { + g_printerr ("%s\n", error->message); + g_error_free (error); + exit (-1); + } /* Parsing Parameter */ if (opt_remaining && g_strv_length (opt_remaining) > 0) |