diff options
author | 0 <NotZed@Ximian.com> | 2001-10-30 19:11:22 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-10-30 19:11:22 +0800 |
commit | 31939ff3475dfb6a29a0eff08298ecfc674d7e9c (patch) | |
tree | 9357c6c822611888759286756df562e7d2e8fed7 /shell/e-shell-startup-wizard.c | |
parent | f53a0de05a720133be8dc58e5f61fa6d0fc4d9ba (diff) | |
download | gsoc2013-evolution-31939ff3475dfb6a29a0eff08298ecfc674d7e9c.tar.gz gsoc2013-evolution-31939ff3475dfb6a29a0eff08298ecfc674d7e9c.tar.zst gsoc2013-evolution-31939ff3475dfb6a29a0eff08298ecfc674d7e9c.zip |
If we're not at the end of the druid list, tell the druid we're going to
2001-10-30 <NotZed@Ximian.com>
* e-shell-startup-wizard.c (next_func): If we're not at the end of
the druid list, tell the druid we're going to change the page.
(back_func): Same for going back a page. This way we can properly
synchronise with the druid object and not race with the wizard
object to set the right page. Part of fix for #12127.
svn path=/trunk/; revision=14450
Diffstat (limited to 'shell/e-shell-startup-wizard.c')
-rw-r--r-- | shell/e-shell-startup-wizard.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/shell/e-shell-startup-wizard.c b/shell/e-shell-startup-wizard.c index b7452e2367..0176257478 100644 --- a/shell/e-shell-startup-wizard.c +++ b/shell/e-shell-startup-wizard.c @@ -200,7 +200,12 @@ next_func (GnomeDruidPage *page, pagenum = page_to_num (page); GNOME_Evolution_Wizard_notifyAction (data->mailer, pagenum, GNOME_Evolution_Wizard_NEXT, &ev); CORBA_exception_free (&ev); - return FALSE; + + /* If on last page we own, let druid goto next page */ + if (pagenum == g_list_length(page_list)-1) + return FALSE; + + return TRUE; } static gboolean @@ -230,7 +235,12 @@ back_func (GnomeDruidPage *page, pagenum = page_to_num (page); GNOME_Evolution_Wizard_notifyAction (data->mailer, pagenum, GNOME_Evolution_Wizard_BACK, &ev); CORBA_exception_free (&ev); - return FALSE; + + /* if we're on page 0, let the druid go back to the start page, if we have one */ + if (pagenum == 0) + return FALSE; + + return TRUE; } static void |