aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-component.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2005-12-19 19:23:11 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-12-19 19:23:11 +0800
commitae8d6437906a7ae68c80546c54e1b27b5be3caa5 (patch)
tree3033ca208cc77504c1b6d3cf5917211d8203182a /calendar/gui/calendar-component.c
parent58245bd32da1d2779a802b16a4e04d9fdae3b348 (diff)
downloadgsoc2013-evolution-ae8d6437906a7ae68c80546c54e1b27b5be3caa5.tar.gz
gsoc2013-evolution-ae8d6437906a7ae68c80546c54e1b27b5be3caa5.tar.zst
gsoc2013-evolution-ae8d6437906a7ae68c80546c54e1b27b5be3caa5.zip
Committing the calendar publishing patch.
svn path=/trunk/; revision=30876
Diffstat (limited to 'calendar/gui/calendar-component.c')
-rw-r--r--calendar/gui/calendar-component.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index 38c6e978af..b2cd808f94 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -35,7 +35,6 @@
#include <libecal/e-cal-time-util.h>
#include <libedataserverui/e-source-selector.h>
#include <shell/e-user-creatable-items-handler.h>
-#include "e-pub-utils.h"
#include "e-calendar-view.h"
#include "calendar-config-keys.h"
#include "calendar-config.h"
@@ -739,25 +738,6 @@ config_primary_tasks_selection_changed_cb (GConfClient *client, guint id, GConfE
update_primary_task_selection (data);
}
-static gboolean
-init_calendar_publishing_cb (gpointer data)
-{
- /* Publish if it is time to publish again */
- e_pub_publish (FALSE);
-
- return FALSE;
-}
-
-static void
-conf_changed_callback (GConfClient *client,
- unsigned int connection_id,
- GConfEntry *entry,
- void *user_data)
-{
- /* publish config changed, so publish */
- e_pub_publish (TRUE);
-}
-
/* Evolution::Component CORBA methods. */
static void
impl_handleURI (PortableServer_Servant servant, const char *uri, CORBA_Environment *ev)
@@ -1676,25 +1656,4 @@ calendar_component_peek_source_list (CalendarComponent *component)
return component->priv->source_list;
}
-void
-calendar_component_init_publishing (void)
-{
- guint idle_id = 0;
- CalendarComponent *calendar_component;
- CalendarComponentPrivate *priv;
-
- calendar_component = calendar_component_peek ();
-
- priv = calendar_component->priv;
-
- gconf_client_add_dir (priv->gconf_client, CALENDAR_CONFIG_PUBLISH, GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);
-
- priv->gconf_notify_id
- = gconf_client_notify_add (priv->gconf_client, CALENDAR_CONFIG_PUBLISH,
- (GConfClientNotifyFunc) conf_changed_callback, NULL,
- NULL, NULL);
-
- idle_id = g_idle_add ((GSourceFunc) init_calendar_publishing_cb, GINT_TO_POINTER (idle_id));
-}
-
BONOBO_TYPE_FUNC_FULL (CalendarComponent, GNOME_Evolution_Component, PARENT_TYPE, calendar_component)