aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/startup-wizard
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@gnome.org>2010-03-02 20:14:10 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-03-14 09:49:49 +0800
commit8e0c294e15ca3f765e330b1d6ae892b768453fa9 (patch)
tree13985e325b0f5e53a5d7b47f496a91bc21e8bbc4 /plugins/startup-wizard
parenta952896b27334756b349c1f6f25db6b2021aab4f (diff)
downloadgsoc2013-evolution-8e0c294e15ca3f765e330b1d6ae892b768453fa9.tar
gsoc2013-evolution-8e0c294e15ca3f765e330b1d6ae892b768453fa9.tar.gz
gsoc2013-evolution-8e0c294e15ca3f765e330b1d6ae892b768453fa9.tar.bz2
gsoc2013-evolution-8e0c294e15ca3f765e330b1d6ae892b768453fa9.tar.lz
gsoc2013-evolution-8e0c294e15ca3f765e330b1d6ae892b768453fa9.tar.xz
gsoc2013-evolution-8e0c294e15ca3f765e330b1d6ae892b768453fa9.tar.zst
gsoc2013-evolution-8e0c294e15ca3f765e330b1d6ae892b768453fa9.zip
Switch to anjal style on express mode.
Diffstat (limited to 'plugins/startup-wizard')
-rw-r--r--plugins/startup-wizard/startup-wizard.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/plugins/startup-wizard/startup-wizard.c b/plugins/startup-wizard/startup-wizard.c
index ede00154f0..44395b6831 100644
--- a/plugins/startup-wizard/startup-wizard.c
+++ b/plugins/startup-wizard/startup-wizard.c
@@ -52,7 +52,7 @@ startup_wizard_terminate (void) {
_exit (0);
}
-G_GNUC_NORETURN static void
+static void
startup_wizard_close (void) {
gtk_main_quit ();
}
@@ -63,11 +63,10 @@ startup_wizard (EPlugin *ep, ESEventTargetUpgrade *target)
GtkWidget *start_page;
GConfClient *client;
GSList *accounts;
-#if 0
EConfig *config;
GList *page_children;
EMAccountEditor *emae;
-#endif
+
client = gconf_client_get_default ();
accounts = gconf_client_get_list (client, "/apps/evolution/mail/accounts", GCONF_VALUE_STRING, NULL);
g_object_unref (client);
@@ -79,17 +78,21 @@ startup_wizard (EPlugin *ep, ESEventTargetUpgrade *target)
return;
}
- start_page = (GtkWidget *)mail_capplet_shell_new(0, TRUE, TRUE);
- gtk_widget_show (start_page);
- g_signal_connect (
- start_page, "delete-event",
- G_CALLBACK (startup_wizard_terminate), NULL);
- g_signal_connect (
- start_page, "destroy",
+ if (e_shell_get_express_mode (e_shell_get_default ())) {
+ start_page = (GtkWidget *)mail_capplet_shell_new(0, TRUE, TRUE);
+ gtk_widget_show (start_page);
+ g_signal_connect (
+ start_page, "delete-event",
+ G_CALLBACK (startup_wizard_terminate), NULL);
+ g_signal_connect (
+ start_page, "destroy",
G_CALLBACK (startup_wizard_close), NULL);
+ gtk_main ();
+
+ return;
+ }
-#if 0
/** @HookPoint-EMConfig: New Mail Account Wizard
* @Id: org.gnome.evolution.mail.config.accountWizard
* @Type: E_CONFIG_ASSISTANT
@@ -129,7 +132,6 @@ startup_wizard (EPlugin *ep, ESEventTargetUpgrade *target)
gtk_widget_show (emae->editor);
-#endif
gtk_main ();
}