[evolution-patches] Exchange connector: Patch to fix the build issue
- From: shakti <shprasad novell com>
- To: Evolution Patches List <evolution-patches lists ximian com>
- Subject: [evolution-patches] Exchange connector: Patch to fix the build issue
- Date: Wed, 11 May 2005 10:56:42 +0530
Hi,
I am attaching a patch which fixes the evolution-exchange build failure.
Now evolution-wizard.h is not present in the include directory. I am
removing the EvolutionWizard to fix this issue.
Please have a look at this patch.
Thanks,
Shakti
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution-exchange/ChangeLog,v
retrieving revision 1.332
diff -u -p -r1.332 ChangeLog
--- ChangeLog 10 May 2005 06:59:11 -0000 1.332
+++ ChangeLog 11 May 2005 05:19:07 -0000
@@ -1,3 +1,8 @@
+2005-05-11 Shakti Sen <shprasad novell com>
+
+ * storage/exchange-autoconfig-wizard.c:
+ Fixed the build failure by removing EvolutionWizard.
+
2005-05-10 Sushma Rai <rsushma novell com>
* camel/camel-exchange-provider.c: Using "sync_offline" in
Index: storage/exchange-autoconfig-wizard.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/storage/exchange-autoconfig-wizard.c,v
retrieving revision 1.4
diff -u -p -r1.4 exchange-autoconfig-wizard.c
--- storage/exchange-autoconfig-wizard.c 24 Feb 2005 21:05:23 -0000 1.4
+++ storage/exchange-autoconfig-wizard.c 11 May 2005 05:19:24 -0000
@@ -33,7 +33,6 @@
#include <e-util/e-account-list.h>
#include <e-util/e-dialog-utils.h>
#include <libedataserverui/e-passwords.h>
-#include <shell/evolution-wizard.h>
#include <gconf/gconf-client.h>
#include <glade/glade-xml.h>
@@ -43,8 +42,6 @@
#include <libgnomeui/gnome-href.h>
typedef struct {
- /* One of these will be set */
- EvolutionWizard *wizard;
GnomeDruid *druid;
GladeXML *xml;
@@ -89,26 +86,16 @@ static void verify_page_changed (GtkEntr
static void
autoconfig_gui_set_page (ExchangeAutoconfigGUI *gui, int page)
{
- if (gui->wizard)
- evolution_wizard_set_page (gui->wizard, page, NULL);
- else
- gnome_druid_set_page (gui->druid, gui->pages->pdata[page]);
+ gnome_druid_set_page (gui->druid, gui->pages->pdata[page]);
}
static void
autoconfig_gui_set_next_sensitive (ExchangeAutoconfigGUI *gui,
gboolean next_sensitive)
{
- if (gui->wizard) {
- evolution_wizard_set_buttons_sensitive (gui->wizard,
- TRUE,
- next_sensitive,
- TRUE, NULL);
- } else {
- gnome_druid_set_buttons_sensitive (gui->druid, TRUE,
- next_sensitive,
- TRUE, FALSE);
- }
+ gnome_druid_set_buttons_sensitive (gui->druid, TRUE,
+ next_sensitive,
+ TRUE, FALSE);
}
@@ -392,13 +379,6 @@ verify_page_prepare (ExchangeAutoconfigG
else
gtk_entry_set_text (gui->email_entry, _("Unknown"));
- /* Only show the "default account" checkbox when running as
- * a druid; that is, if the user already has at least one other
- * account configured.
- */
- if (gui->wizard)
- gtk_widget_hide (GTK_WIDGET (gui->default_account_check));
-
verify_page_changed (NULL, gui);
}
@@ -419,16 +399,6 @@ verify_page_next (ExchangeAutoconfigGUI
g_free (gui->ac->email);
gui->ac->email = g_strdup (gtk_entry_get_text (gui->email_entry));
- if (gui->wizard) {
- /* Set the timezone in gconf so it will default correctly
- * on the timezone page.
- */
- gconf = gconf_client_get_default ();
- gconf_client_set_string (gconf,
- "/apps/evolution/calendar/display/timezone",
- gui->ac->timezone,
- NULL);
- }
return FALSE;
}
@@ -557,97 +527,6 @@ static struct {
};
static const int num_autoconfig_pages = sizeof (autoconfig_pages) / sizeof (autoconfig_pages[0]);
-
-/* Bonobo autoconfig wizard */
-
-static void
-wizard_next_cb (EvolutionWizard *wizard, int page_num,
- ExchangeAutoconfigGUI *gui)
-{
- if (autoconfig_pages[page_num].next_func &&
- autoconfig_pages[page_num].next_func (gui))
- return;
-
- if (page_num < EXCHANGE_AUTOCONFIG_PAGE_VERIFY)
- evolution_wizard_set_page (wizard, page_num + 1, NULL);
-}
-
-static void
-wizard_prepare_cb (EvolutionWizard *wizard, int page_num,
- ExchangeAutoconfigGUI *gui)
-{
- if (autoconfig_pages[page_num].prepare_func)
- autoconfig_pages[page_num].prepare_func (gui);
-}
-
-static void
-wizard_back_cb (EvolutionWizard *wizard, int page_num,
- ExchangeAutoconfigGUI *gui)
-{
- if (page_num > EXCHANGE_AUTOCONFIG_PAGE_VERIFY) {
- evolution_wizard_set_page (wizard, EXCHANGE_AUTOCONFIG_PAGE_VERIFY, NULL);
- return;
- }
-
- if (autoconfig_pages[page_num].back_func &&
- autoconfig_pages[page_num].back_func (gui))
- return;
-
- if (page_num > 0)
- evolution_wizard_set_page (wizard, page_num - 1, NULL);
-}
-
-static void
-wizard_finish_cb (EvolutionWizard *wizard, ExchangeAutoconfigGUI *gui)
-{
- autoconfig_gui_apply (gui);
-}
-
-static void
-wizard_destroyed (gpointer gui, GObject *where_wizard_was)
-{
- /* FIXME: not being called */
- autoconfig_gui_free (gui);
-}
-
-BonoboObject *
-exchange_autoconfig_wizard_new (void)
-{
- ExchangeAutoconfigGUI *gui;
- GnomeDruidPageStandard *page;
- GdkPixbuf *icon;
- GtkWidget *body;
- int i;
-
- gui = autoconfig_gui_new ();
- if (!gui)
- return NULL;
- gui->wizard = evolution_wizard_new ();
-
- icon = gdk_pixbuf_new_from_file (CONNECTOR_IMAGESDIR "/connector.png", NULL);
- for (i = 0; i < num_autoconfig_pages; i++) {
- page = (GnomeDruidPageStandard *)glade_xml_get_widget (gui->xml, autoconfig_pages[i].page_name);
- body = glade_xml_get_widget (gui->xml, autoconfig_pages[i].body_name);
- g_object_ref (body);
- gtk_widget_unparent (body);
-
- evolution_wizard_add_page (gui->wizard, page->title, icon, body);
- g_object_unref (body);
- }
- g_object_unref (icon);
-
- g_signal_connect (gui->wizard, "next", G_CALLBACK (wizard_next_cb), gui);
- g_signal_connect (gui->wizard, "prepare", G_CALLBACK (wizard_prepare_cb), gui);
- g_signal_connect (gui->wizard, "back", G_CALLBACK (wizard_back_cb), gui);
- g_signal_connect (gui->wizard, "finish", G_CALLBACK (wizard_finish_cb), gui);
-
- g_object_weak_ref (G_OBJECT (gui->wizard), wizard_destroyed, gui);
-
- return BONOBO_OBJECT (gui->wizard);
-}
-
-
-
/* Autoconfig druid */
static int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]