diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-08-11 03:58:39 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-09-14 20:08:48 +0800 |
commit | 911d9f8c6b947d8ac922489fc03b1d063b377973 (patch) | |
tree | 9d5a080bed88e0601e2eec57f9e2073a6f231c26 /modules/startup-wizard/evolution-startup-wizard.c | |
parent | bae19960b300c3f39ca093f51576621aacbbc84f (diff) | |
download | gsoc2013-evolution-911d9f8c6b947d8ac922489fc03b1d063b377973.tar gsoc2013-evolution-911d9f8c6b947d8ac922489fc03b1d063b377973.tar.gz gsoc2013-evolution-911d9f8c6b947d8ac922489fc03b1d063b377973.tar.bz2 gsoc2013-evolution-911d9f8c6b947d8ac922489fc03b1d063b377973.tar.lz gsoc2013-evolution-911d9f8c6b947d8ac922489fc03b1d063b377973.tar.xz gsoc2013-evolution-911d9f8c6b947d8ac922489fc03b1d063b377973.tar.zst gsoc2013-evolution-911d9f8c6b947d8ac922489fc03b1d063b377973.zip |
EConfig: Broadcast abort/commit events by way of signals.
Remove the clumsy abortfunc and commitfunc callback arguments from
e_config_add_items().
Diffstat (limited to 'modules/startup-wizard/evolution-startup-wizard.c')
-rw-r--r-- | modules/startup-wizard/evolution-startup-wizard.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/startup-wizard/evolution-startup-wizard.c b/modules/startup-wizard/evolution-startup-wizard.c index 5e3b028cdf..3cfca9318a 100644 --- a/modules/startup-wizard/evolution-startup-wizard.c +++ b/modules/startup-wizard/evolution-startup-wizard.c @@ -167,7 +167,6 @@ completed: static void startup_wizard_config_abort (EConfig *config, - GSList *items, EStartupWizard *extension) { GtkAssistant *assistant; @@ -209,7 +208,6 @@ startup_wizard_config_abort (EConfig *config, static void startup_wizard_config_commit (EConfig *config, - GSList *items, EStartupWizard *extension) { EShell *shell; @@ -480,8 +478,6 @@ startup_wizard_new_assistant (EStartupWizard *extension) e_config_add_items ( config, items, - (EConfigItemsFunc) startup_wizard_config_commit, - (EConfigItemsFunc) startup_wizard_config_abort, (EConfigItemsFunc) startup_wizard_config_free, g_object_ref (extension)); @@ -489,6 +485,14 @@ startup_wizard_new_assistant (EStartupWizard *extension) config, "70.progress", (EConfigCheckFunc) startup_wizard_check_progress, extension); + g_signal_connect ( + config, "abort", + G_CALLBACK (startup_wizard_config_abort), extension); + + g_signal_connect ( + config, "commit", + G_CALLBACK (startup_wizard_config_commit), extension); + e_config_create_window (config, NULL, _("Evolution Setup Assistant")); /* Additional tweaks. The window must be created at this point. */ |