diff options
author | Christian Persch <chpe@src.gnome.org> | 2009-02-08 07:29:14 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2009-02-08 07:29:14 +0800 |
commit | a3ce0ecd8a374c5ffaf03050a2faedab6f4dd637 (patch) | |
tree | c0a71bf9537ecfa65af98751b80532c04d7182ca /src | |
parent | bd29ad635f789b9b7b3283f0746f0d6fcbedd5ce (diff) | |
download | gsoc2013-epiphany-a3ce0ecd8a374c5ffaf03050a2faedab6f4dd637.tar.gz gsoc2013-epiphany-a3ce0ecd8a374c5ffaf03050a2faedab6f4dd637.tar.zst gsoc2013-epiphany-a3ce0ecd8a374c5ffaf03050a2faedab6f4dd637.zip |
Simply use g_irepository_get_option_group()
svn path=/trunk/; revision=8767
Diffstat (limited to 'src')
-rw-r--r-- | src/ephy-main.c | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/ephy-main.c b/src/ephy-main.c index aa4519be6..3efd40818 100644 --- a/src/ephy-main.c +++ b/src/ephy-main.c @@ -83,19 +83,6 @@ option_version_cb (const gchar *option_name, return FALSE; } -#ifdef ENABLE_INTROSPECTION -static gboolean -option_introspection_dump_cb (const gchar *option_name, - const gchar *value, - gpointer data, - GError **error) -{ - g_irepository_dump (value, NULL); - exit (0); - return TRUE; -} -#endif /* ENABLE_INTROSPECTION */ - static const GOptionEntry option_entries[] = { { "new-tab", 'n', 0, G_OPTION_ARG_NONE, &open_in_new_tab, @@ -118,10 +105,6 @@ static const GOptionEntry option_entries[] = "", N_("URL …")}, { "version", 0, G_OPTION_FLAG_NO_ARG | G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_CALLBACK, option_version_cb, NULL, NULL }, -#ifdef ENABLE_INTROSPECTION - { "introspect-dump", 0, G_OPTION_FLAG_HIDDEN, - G_OPTION_ARG_CALLBACK, option_introspection_dump_cb, NULL, NULL }, -#endif { NULL } }; @@ -585,6 +568,10 @@ main (int argc, g_option_context_set_main_group (option_context, option_group); +#ifdef ENABLE_INTROSPECTION + g_option_context_add_group (option_context, g_irepository_get_option_group ()); +#endif + g_option_context_add_group (option_context, gtk_get_option_group (TRUE)); g_option_context_add_group (option_context, egg_sm_client_get_option_group ()); |