aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2009-02-21 23:02:32 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2009-02-21 23:02:32 +0800
commitc3bfa60a7b27cb0cc44e134dcb9951ab9d41e6f6 (patch)
tree0e250e4cf1a618a0e5a036243121d40ff28d18da /shell
parent19282b39b651f26b60258cc9ce0f93d27e6dd3e5 (diff)
downloadgsoc2013-evolution-c3bfa60a7b27cb0cc44e134dcb9951ab9d41e6f6.tar
gsoc2013-evolution-c3bfa60a7b27cb0cc44e134dcb9951ab9d41e6f6.tar.gz
gsoc2013-evolution-c3bfa60a7b27cb0cc44e134dcb9951ab9d41e6f6.tar.bz2
gsoc2013-evolution-c3bfa60a7b27cb0cc44e134dcb9951ab9d41e6f6.tar.lz
gsoc2013-evolution-c3bfa60a7b27cb0cc44e134dcb9951ab9d41e6f6.tar.xz
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 'shell')
-rw-r--r--shell/main.c27
1 files changed, 11 insertions, 16 deletions
diff --git a/shell/main.c b/shell/main.c
index df542568f3..6b15768e07 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -390,7 +390,7 @@ setup_segv_redirect (void)
#define setup_segv_redirect() (void)0
#endif
-static const GOptionEntry options[] = {
+static GOptionEntry entries[] = {
{ "component", 'c', 0, G_OPTION_ARG_STRING, &requested_view,
N_("Start Evolution activating the specified component"), NULL },
{ "offline", '\0', 0, G_OPTION_ARG_NONE, &start_offline,
@@ -642,10 +642,8 @@ main (int argc, char **argv)
#ifdef DEVELOPMENT
gboolean skip_warning_dialog;
#endif
- GnomeProgram *program;
- GOptionContext *context;
- const gchar *parameter_string;
gchar *filename;
+ GError *error = NULL;
/* Make ElectricFence work. */
free (malloc (10));
@@ -654,21 +652,19 @@ main (int argc, char **argv)
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
- parameter_string = _("- The Evolution PIM and Email Client");
- context = g_option_context_new (parameter_string);
- g_option_context_add_main_entries (context, options, GETTEXT_PACKAGE);
- g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
-
#ifdef G_OS_WIN32
set_paths ();
#endif
- program = gnome_program_init (
- PACKAGE, VERSION, LIBGNOMEUI_MODULE, argc, argv,
- GNOME_PROGRAM_STANDARD_PROPERTIES,
- GNOME_PARAM_GOPTION_CONTEXT, context,
- GNOME_PARAM_HUMAN_READABLE_NAME, _("Evolution"),
- NULL);
+ gtk_init_with_args (
+ &argc, &argv,
+ _("- The Evolution PIM and Email Client"),
+ entries, GETTEXT_PACKAGE, &error);
+ if (error != NULL) {
+ g_printerr ("%s\n", error->message);
+ g_error_free (error);
+ exit (1);
+ }
#ifdef G_OS_WIN32
if (strcmp (gettext (""), "") == 0) {
@@ -778,7 +774,6 @@ main (int argc, char **argv)
gtk_accel_map_save (e_get_accels_filename ());
e_icon_factory_shutdown ();
- g_object_unref (program);
gnome_sound_shutdown ();
e_cursors_shutdown ();
#ifdef G_OS_WIN32