diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-02-21 23:02:32 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-02-21 23:02:32 +0800 |
commit | c3bfa60a7b27cb0cc44e134dcb9951ab9d41e6f6 (patch) | |
tree | 0e250e4cf1a618a0e5a036243121d40ff28d18da /plugins | |
parent | 19282b39b651f26b60258cc9ce0f93d27e6dd3e5 (diff) | |
download | gsoc2013-evolution-c3bfa60a7b27cb0cc44e134dcb9951ab9d41e6f6.tar.gz gsoc2013-evolution-c3bfa60a7b27cb0cc44e134dcb9951ab9d41e6f6.tar.zst gsoc2013-evolution-c3bfa60a7b27cb0cc44e134dcb9951ab9d41e6f6.zip |
Kill EDropdownButton.
Migrate off of gnome_program_init().
svn path=/branches/kill-bonobo/; revision=37303
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/backup-restore/backup.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/plugins/backup-restore/backup.c b/plugins/backup-restore/backup.c index ac0b257d17..39ed4de4a9 100644 --- a/plugins/backup-restore/backup.c +++ b/plugins/backup-restore/backup.c @@ -431,22 +431,21 @@ 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); + gtk_init_with_args ( + &argc, &argv, NULL, options, GETTEXT_PACKAGE, &error); + if (error != NULL) { + g_printerr ("%s\n", error->message); + g_error_free (error); + exit (1); + } if (opt_remaining) { for (i = 0; i < g_strv_length (opt_remaining); i++) { |