diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-01 04:11:52 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-01 04:11:52 +0800 |
commit | 5e479d0a2d40200a1edce50a659d1ada8fe721f7 (patch) | |
tree | c08dba58436a49fe744795a402c47a1fc9aacb95 | |
parent | 6f97d9d4194df14e44680dac9a292b5254cb1c71 (diff) | |
download | gsoc2013-evolution-5e479d0a2d40200a1edce50a659d1ada8fe721f7.tar gsoc2013-evolution-5e479d0a2d40200a1edce50a659d1ada8fe721f7.tar.gz gsoc2013-evolution-5e479d0a2d40200a1edce50a659d1ada8fe721f7.tar.bz2 gsoc2013-evolution-5e479d0a2d40200a1edce50a659d1ada8fe721f7.tar.lz gsoc2013-evolution-5e479d0a2d40200a1edce50a659d1ada8fe721f7.tar.xz gsoc2013-evolution-5e479d0a2d40200a1edce50a659d1ada8fe721f7.tar.zst gsoc2013-evolution-5e479d0a2d40200a1edce50a659d1ada8fe721f7.zip |
Bug 580894 – Kill libgnome/gnome-util (partial fix)
Migrate the evolution-backup utility from gnome_program_init() to
gtk_init_with_args().
-rw-r--r-- | plugins/backup-restore/backup.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/plugins/backup-restore/backup.c b/plugins/backup-restore/backup.c index ac0b257d17..47d439c7ae 100644 --- a/plugins/backup-restore/backup.c +++ b/plugins/backup-restore/backup.c @@ -29,7 +29,6 @@ #include <glib/gi18n.h> #include <gtk/gtk.h> -#include <libgnome/gnome-util.h> #include <libebook/e-book.h> #include <libecal/e-cal.h> @@ -431,22 +430,22 @@ dlg_response (GtkWidget *dlg, gint response, gpointer data) int main (int argc, char **argv) { - GnomeProgram *program; - GOptionContext *context; char *file = NULL, *oper = NULL; gint i; + GError *error = NULL; - gtk_init (&argc, &argv); bindtextdomain (GETTEXT_PACKAGE, EVOLUTION_LOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); - context = g_option_context_new (NULL); - g_option_context_add_main_entries (context, options, GETTEXT_PACKAGE); - program = gnome_program_init (PACKAGE, VERSION, LIBGNOME_MODULE, argc, argv, - GNOME_PROGRAM_STANDARD_PROPERTIES, - GNOME_PARAM_GOPTION_CONTEXT, context, - GNOME_PARAM_NONE); + g_thread_init (NULL); + + gtk_init_with_args ( + &argc, &argv, NULL, options, GETTEXT_PACKAGE, &error); + if (error != NULL) { + g_printerr ("%s\n", error->message); + exit (1); + } if (opt_remaining) { for (i = 0; i < g_strv_length (opt_remaining); i++) { |