diff options
author | Michael Meeks <michael.meeks@novell.com> | 2010-03-03 16:41:00 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-03-14 09:52:51 +0800 |
commit | d9be66b527d0d666e2169d11ece578e901101733 (patch) | |
tree | adf9bd26c5d3b904f01c01c74a5d393c83255608 /plugins/startup-wizard | |
parent | bc77811277060467e27f6375b34953891f2e59da (diff) | |
download | gsoc2013-evolution-d9be66b527d0d666e2169d11ece578e901101733.tar gsoc2013-evolution-d9be66b527d0d666e2169d11ece578e901101733.tar.gz gsoc2013-evolution-d9be66b527d0d666e2169d11ece578e901101733.tar.bz2 gsoc2013-evolution-d9be66b527d0d666e2169d11ece578e901101733.tar.lz gsoc2013-evolution-d9be66b527d0d666e2169d11ece578e901101733.tar.xz gsoc2013-evolution-d9be66b527d0d666e2169d11ece578e901101733.tar.zst gsoc2013-evolution-d9be66b527d0d666e2169d11ece578e901101733.zip |
Removed obsolete method signatures in em-account-editor.h
Added em_account_editor_get_widget, and cleaned up the widget listing.
Cleaned the startup wizard code to find it's label by name
Added disabling of power-user 'indentity' frame in the first page express capplet.
Diffstat (limited to 'plugins/startup-wizard')
-rw-r--r-- | plugins/startup-wizard/startup-wizard.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/plugins/startup-wizard/startup-wizard.c b/plugins/startup-wizard/startup-wizard.c index 4d7363873e..5b5c467f69 100644 --- a/plugins/startup-wizard/startup-wizard.c +++ b/plugins/startup-wizard/startup-wizard.c @@ -61,10 +61,10 @@ void startup_wizard (EPlugin *ep, ESEventTargetUpgrade *target) { GtkWidget *start_page; + GtkLabel *start_page_label; GConfClient *client; GSList *accounts; EConfig *config; - GList *page_children; EMAccountEditor *emae; client = gconf_client_get_default (); @@ -79,8 +79,9 @@ startup_wizard (EPlugin *ep, ESEventTargetUpgrade *target) } if (e_shell_get_express_mode (e_shell_get_default ())) { - start_page = (GtkWidget *)mail_capplet_shell_new(0, TRUE, TRUE); + 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); @@ -112,18 +113,13 @@ startup_wizard (EPlugin *ep, ESEventTargetUpgrade *target) start_page = e_config_page_get (config, "0.start"); gtk_assistant_set_page_title (GTK_ASSISTANT (config->widget), start_page, _("Welcome")); - page_children = gtk_container_get_children (GTK_CONTAINER (start_page)); - if (page_children) { - GtkLabel *label = GTK_LABEL (page_children->data); - if (label) { - gtk_label_set_text (label, _("" - "Welcome to Evolution. The next few screens will allow Evolution to connect " - "to your email accounts, and to import files from other applications. \n" - "\n" - "Please click the \"Forward\" button to continue. ")); - } - - g_list_free (page_children); + start_page_label = GTK_LABEL (em_account_editor_get_widget (emae, "start_page_label")); + if (start_page_label) { + gtk_label_set_text (start_page_label, _("" + "ZZZ ! Welcome to Evolution. The next few screens will allow Evolution to connect " + "to your email accounts, and to import files from other applications. \n" + "\n" + "Please click the \"Forward\" button to continue. ")); } g_signal_connect ( |