diff options
author | Srinivasa Ragavan <sragavan@novell.com> | 2009-05-22 19:03:49 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-24 12:56:54 +0800 |
commit | 673e1177e756fdd09c0094edbcd481e3523f7622 (patch) | |
tree | c66216c0936efd8ab83f2bdc8cc3579bf6378b8e /e-util | |
parent | 4324f34596feee175c5934bfbe8011fc1f31f7b8 (diff) | |
download | gsoc2013-evolution-673e1177e756fdd09c0094edbcd481e3523f7622.tar gsoc2013-evolution-673e1177e756fdd09c0094edbcd481e3523f7622.tar.gz gsoc2013-evolution-673e1177e756fdd09c0094edbcd481e3523f7622.tar.bz2 gsoc2013-evolution-673e1177e756fdd09c0094edbcd481e3523f7622.tar.lz gsoc2013-evolution-673e1177e756fdd09c0094edbcd481e3523f7622.tar.xz gsoc2013-evolution-673e1177e756fdd09c0094edbcd481e3523f7622.tar.zst gsoc2013-evolution-673e1177e756fdd09c0094edbcd481e3523f7622.zip |
Fix EConfig bugs for Anjal's account setup.
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-config.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/e-util/e-config.c b/e-util/e-config.c index 1da54b5436..a2d68e1740 100644 --- a/e-util/e-config.c +++ b/e-util/e-config.c @@ -532,11 +532,13 @@ ec_rebuild(EConfig *emp) gnome_druid_page_edge_set_title((GnomeDruidPageEdge *)page, translated_label); gnome_druid_insert_page((GnomeDruid *)druid, pagenode?(GnomeDruidPage *)pagenode->frame:NULL, (GnomeDruidPage *)page); } - if (item->type == E_CONFIG_PAGE_FINISH) { - g_signal_connect(page, "back", G_CALLBACK(ec_druid_prev), wn); - g_signal_connect(page, "finish", G_CALLBACK(ec_druid_finish), wn); - } else - g_signal_connect(page, "next", G_CALLBACK(ec_druid_next), wn); + if (page) { + if (item->type == E_CONFIG_PAGE_FINISH) { + g_signal_connect(page, "back", G_CALLBACK(ec_druid_prev), wn); + g_signal_connect(page, "finish", G_CALLBACK(ec_druid_finish), wn); + } else + g_signal_connect(page, "next", G_CALLBACK(ec_druid_next), wn); + } wn->frame = page; wn->widget = page; } @@ -567,10 +569,11 @@ ec_rebuild(EConfig *emp) page = item->factory(emp, item, root, wn->frame, wn->context->data); if (emp->type == E_CONFIG_DRUID) { if (page) { - g_return_if_fail (GNOME_IS_DRUID_PAGE_STANDARD(page)); - connect = wn->frame != page; - wn->frame = page; - page = ((GnomeDruidPageStandard *)page)->vbox; + if (GNOME_IS_DRUID_PAGE_STANDARD(page)) { + connect = wn->frame != page; + wn->frame = page; + page = ((GnomeDruidPageStandard *)page)->vbox; + } } else wn->frame = page; } else { |