aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@ximian.com>2001-04-03 13:35:48 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2001-04-03 13:35:48 +0800
commit7a4bd61930f826ceabf144bf1d4ca06592565e90 (patch)
treee05e3a2e25f54c8b7015c33311b121131ffb7777 /calendar/gui
parent44882da7a7193185f7b593ac3799758c5065f6e4 (diff)
downloadgsoc2013-evolution-7a4bd61930f826ceabf144bf1d4ca06592565e90.tar
gsoc2013-evolution-7a4bd61930f826ceabf144bf1d4ca06592565e90.tar.gz
gsoc2013-evolution-7a4bd61930f826ceabf144bf1d4ca06592565e90.tar.bz2
gsoc2013-evolution-7a4bd61930f826ceabf144bf1d4ca06592565e90.tar.lz
gsoc2013-evolution-7a4bd61930f826ceabf144bf1d4ca06592565e90.tar.xz
gsoc2013-evolution-7a4bd61930f826ceabf144bf1d4ca06592565e90.tar.zst
gsoc2013-evolution-7a4bd61930f826ceabf144bf1d4ca06592565e90.zip
Plug leak.
2001-04-02 Federico Mena Quintero <federico@ximian.com> * gui/e-tasks.c (e_tasks_setup_menus): Plug leak. * gui/event-editor.c (obj_updated_cb): Do nothing for now until we think of something sensible to do. (obj_removed_cb): Likewise. * gui/dialogs/task-editor.c (obj_updated_cb): Likewise. (obj_removed_cb): Likewise. * gui/event-editor.c (dialog_to_comp_object): Plug leak. svn path=/trunk/; revision=9124
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/dialogs/task-editor.c8
-rw-r--r--calendar/gui/e-tasks.c7
-rw-r--r--calendar/gui/event-editor.c8
3 files changed, 21 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/task-editor.c b/calendar/gui/dialogs/task-editor.c
index 64e73e30f5..30e5987eea 100644
--- a/calendar/gui/dialogs/task-editor.c
+++ b/calendar/gui/dialogs/task-editor.c
@@ -553,6 +553,8 @@ task_editor_set_cal_client (TaskEditor *tedit,
static void
obj_updated_cb (CalClient *client, const char *uid, gpointer data)
{
+ /* FIXME: Do something sensible if the component changes under our feet */
+#if 0
TaskEditor *tedit;
TaskEditorPrivate *priv;
CalComponent *comp;
@@ -595,12 +597,17 @@ obj_updated_cb (CalClient *client, const char *uid, gpointer data)
}
raise_and_focus (priv->app);
+#endif
}
/* Callback used when the calendar client tells us that an object was removed */
static void
obj_removed_cb (CalClient *client, const char *uid, gpointer data)
{
+ /* FIXME: Do something sensible if the component is removed under our
+ * feet.
+ */
+#if 0
TaskEditor *tedit;
TaskEditorPrivate *priv;
const gchar *editing_uid;
@@ -621,6 +628,7 @@ obj_removed_cb (CalClient *client, const char *uid, gpointer data)
raise_and_focus (priv->app);
+#endif
}
diff --git a/calendar/gui/e-tasks.c b/calendar/gui/e-tasks.c
index 69e6ddaeb4..e69b2a4037 100644
--- a/calendar/gui/e-tasks.c
+++ b/calendar/gui/e-tasks.c
@@ -551,12 +551,15 @@ e_tasks_setup_menus (ETasks *tasks,
GalViewMenus *views;
GalViewFactory *factory;
ETableSpecification *spec;
+ char *dir;
collection = gal_view_collection_new();
- /* FIXME: Memory leak. */
+
+ dir = gnome_util_prepend_user_home ("/evolution/views/tasks/");
gal_view_collection_set_storage_directories (collection,
EVOLUTION_DATADIR "/evolution/views/tasks/",
- gnome_util_prepend_user_home ("/evolution/views/tasks/"));
+ dir);
+ g_free (dir);
spec = e_table_specification_new ();
e_table_specification_load_from_string (spec, e_calendar_table_get_spec());
diff --git a/calendar/gui/event-editor.c b/calendar/gui/event-editor.c
index 8e3f86c92f..30abe1ae9a 100644
--- a/calendar/gui/event-editor.c
+++ b/calendar/gui/event-editor.c
@@ -2600,6 +2600,8 @@ raise_and_focus (GtkWidget *widget)
static void
obj_updated_cb (CalClient *client, const char *uid, gpointer data)
{
+ /* FIXME: Do something sensible if the component changes under our feet */
+#if 0
EventEditor *ee;
EventEditorPrivate *priv;
CalComponent *comp;
@@ -2642,12 +2644,17 @@ obj_updated_cb (CalClient *client, const char *uid, gpointer data)
}
raise_and_focus (priv->app);
+#endif
}
/* Callback used when the calendar client tells us that an object was removed */
static void
obj_removed_cb (CalClient *client, const char *uid, gpointer data)
{
+ /* FIXME: Do something sensible if the component is removed under our
+ * feet.
+ */
+#if 0
EventEditor *ee;
EventEditorPrivate *priv;
const gchar *editing_uid;
@@ -2668,6 +2675,7 @@ obj_removed_cb (CalClient *client, const char *uid, gpointer data)
raise_and_focus (priv->app);
+#endif
}
/**