diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-06-30 22:47:59 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-06-30 22:47:59 +0800 |
commit | 8dc6bbd250891bcef9130a789c9b74a01be7f1cb (patch) | |
tree | abf0e8555b04f6748473ac8215e26fb7d6c44d35 /shell/e-shell-migrate.c | |
parent | 99126d46e61ce19a72acb3dd8498729b025339ec (diff) | |
download | gsoc2013-evolution-8dc6bbd250891bcef9130a789c9b74a01be7f1cb.tar.gz gsoc2013-evolution-8dc6bbd250891bcef9130a789c9b74a01be7f1cb.tar.zst gsoc2013-evolution-8dc6bbd250891bcef9130a789c9b74a01be7f1cb.zip |
Get the "startup-wizard" plugin working again.
Diffstat (limited to 'shell/e-shell-migrate.c')
-rw-r--r-- | shell/e-shell-migrate.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/shell/e-shell-migrate.c b/shell/e-shell-migrate.c index 53df4106b4..f18c84685d 100644 --- a/shell/e-shell-migrate.c +++ b/shell/e-shell-migrate.c @@ -32,6 +32,8 @@ #include "e-util/e-fsutils.h" #include "e-util/e-util.h" +#include "es-event.h" + #define GCONF_VERSION_KEY "/apps/evolution/version" #define GCONF_LAST_VERSION_KEY "/apps/evolution/last_version" @@ -195,6 +197,7 @@ fail: gboolean e_shell_migrate_attempt (EShell *shell) { + ESEvent *ese; GConfClient *client; const gchar *key; const gchar *old_data_dir; @@ -283,7 +286,7 @@ check_old: string = g_strdup_printf ( "%d.%d.%d", last_major, last_minor, last_micro); response = e_error_run ( - NULL, "shel:upgrade-remove-1-4", string, NULL); + NULL, "shell:upgrade-remove-1-4", string, NULL); g_free (string); switch (response) { @@ -319,6 +322,20 @@ check_old: gconf_client_set_string (client, key, string, NULL); g_free (string); + /** @Event: Shell attempted upgrade + * @Shell: an #EShell + * @Id: upgrade.done + * @Target: ESMenuTargetState + * + * This event is emitted whenever the shell successfully attempts + * an upgrade. + **/ + ese = es_event_peek (); + e_event_emit ( + (EEvent *) ese, "upgrade.done", + (EEventTarget *) es_event_target_new_upgrade ( + ese, curr_major, curr_minor, curr_micro)); + return TRUE; } |