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



commit 7458ff33e3e613666786ab9366e056bb9a8d3a86
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 |    6 +++---
 plugins/itip-formatter/itip-view.c      |    4 ++--
 plugins/itip-formatter/itip-view.h      |    4 ----
 3 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/plugins/itip-formatter/itip-formatter.c b/plugins/itip-formatter/itip-formatter.c
index 72535a3..7493056 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
@@ -40,8 +42,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>
@@ -599,7 +599,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);
 }
 
@@ -3123,3 +3122,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 5163d25..f6fb425 100644
--- a/plugins/itip-formatter/itip-view.c
+++ b/plugins/itip-formatter/itip-view.c
@@ -35,7 +35,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>
@@ -103,7 +102,6 @@ struct _ItipViewPrivate {
 	GtkWidget *selector_box;
 	GtkWidget *escb;
 	GtkWidget *escb_header;
-	ESourceList *source_list;
 
 	GtkWidget *rsvp_box;
 	GtkWidget *rsvp_check;
@@ -1922,6 +1920,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)
@@ -1987,6 +1986,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 d68ebdf..83f656e 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]