[evolution/account-mgmt: 41/49] Adapt itip-formatter plugin to the new ESource API.



commit 2f69e189f6a7e366f80f2a24006e5e2690b6edf9
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Sep 24 09:48:52 2011 -0400

    Adapt itip-formatter plugin to the new ESource API.

 plugins/itip-formatter/itip-formatter.c |    8 ++++----
 plugins/itip-formatter/itip-view.c      |    4 ++--
 plugins/itip-formatter/itip-view.h      |    4 ----
 3 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c
index 687dc26..9f6b44d 100644
--- a/plugins/itip-formatter/itip-formatter.c
+++ b/plugins/itip-formatter/itip-formatter.c
@@ -20,6 +20,8 @@
  *
  */
 
+#if 0  /* ACCOUNT_MGMT */
+
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
@@ -39,8 +41,6 @@
 #include <mail/mail-folder-cache.h>
 #include <mail/mail-tools.h>
 #include <mail/mail-mt.h>
-#include <libedataserver/e-account-list.h>
-#include <e-util/e-account-utils.h>
 #include <e-util/e-alert-dialog.h>
 #include <e-util/e-mktemp.h>
 #include <calendar/gui/itip-utils.h>
@@ -596,7 +596,6 @@ start_calendar_server (struct _itip_puri *pitip,
 		type == E_CAL_CLIENT_SOURCE_TYPE_MEMOS ? E_CLIENT_SOURCE_TYPE_MEMOS :
 		type == E_CAL_CLIENT_SOURCE_TYPE_TASKS ? E_CLIENT_SOURCE_TYPE_TASKS : E_CLIENT_SOURCE_TYPE_LAST,
 		TRUE, pitip->cancellable,
-		e_client_utils_authenticate_handler, NULL,
 		func, data);
 }
 
@@ -2349,7 +2348,7 @@ extract_itip_data (struct _itip_puri *pitip,
 		prop = NULL;
 		comp = e_cal_component_new ();
 		e_cal_component_set_icalcomponent (comp, icalcomponent_new_clone (pitip->ical_comp));
-		my_address = itip_get_comp_attendee (comp, NULL);
+		my_address = itip_get_comp_attendee (registry, comp, NULL);
 		g_object_unref (comp);
 		comp = NULL;
 
@@ -3312,3 +3311,4 @@ itip_attachment_frame (EMFormat *emf,
 	camel_stream_close (stream, cancellable, NULL);
 }
 
+#endif /* ACCOUNT_MGMT */
diff --git a/plugins/itip-formatter/itip-view.c b/plugins/itip-formatter/itip-view.c
index 2528836..b5cfc17 100644
--- a/plugins/itip-formatter/itip-view.c
+++ b/plugins/itip-formatter/itip-view.c
@@ -34,7 +34,6 @@
 #include <gtkhtml/gtkhtml-embedded.h>
 #include <mail/em-format-hook.h>
 #include <mail/em-format-html.h>
-#include <libedataserver/e-account-list.h>
 #include <e-util/e-util.h>
 #include <e-util/e-unicode.h>
 #include <calendar/gui/itip-utils.h>
@@ -102,7 +101,6 @@ struct _ItipViewPrivate {
 	GtkWidget *selector_box;
 	GtkWidget *escb;
 	GtkWidget *escb_header;
-	ESourceList *source_list;
 
 	GtkWidget *rsvp_box;
 	GtkWidget *rsvp_check;
@@ -1930,6 +1928,7 @@ source_changed_cb (ESourceComboBox *escb,
 	g_signal_emit (view, signals[SOURCE_SELECTED], 0, source);
 }
 
+#if 0  /* ACCOUNT_MGMT */
 void
 itip_view_set_source_list (ItipView *view,
                            ESourceList *source_list)
@@ -1995,6 +1994,7 @@ itip_view_get_source_list (ItipView *view)
 
 	return priv->source_list;
 }
+#endif /* ACCOUNT_MGMT */
 
 void
 itip_view_set_source (ItipView *view,
diff --git a/plugins/itip-formatter/itip-view.h b/plugins/itip-formatter/itip-view.h
index 538306c..134eb89 100644
--- a/plugins/itip-formatter/itip-view.h
+++ b/plugins/itip-formatter/itip-view.h
@@ -27,7 +27,6 @@
 #include <stdarg.h>
 #include <unistd.h>
 #include <gtk/gtk.h>
-#include <libedataserver/e-source-list.h>
 #include <libecal/e-cal-client.h>
 
 G_BEGIN_DECLS
@@ -148,9 +147,6 @@ guint itip_view_add_lower_info_item_printf (ItipView *view, ItipViewInfoItemType
 void itip_view_remove_lower_info_item (ItipView *view, guint id);
 void itip_view_clear_lower_info_items (ItipView *view);
 
-void itip_view_set_source_list (ItipView *view, ESourceList *source_list);
-ESourceList *itip_view_get_source_list (ItipView *view);
-
 void itip_view_set_source (ItipView *view, ESource *source);
 ESource *itip_view_get_source (ItipView *view);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]