diff options
author | Federico Mena Quintero <federico@ximian.com> | 2001-04-03 13:35:48 +0800 |
---|---|---|
committer | Federico Mena Quintero <federico@src.gnome.org> | 2001-04-03 13:35:48 +0800 |
commit | 7a4bd61930f826ceabf144bf1d4ca06592565e90 (patch) | |
tree | e05e3a2e25f54c8b7015c33311b121131ffb7777 /calendar/cal-client/cal-client.c | |
parent | 44882da7a7193185f7b593ac3799758c5065f6e4 (diff) | |
download | gsoc2013-evolution-7a4bd61930f826ceabf144bf1d4ca06592565e90.tar.gz 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/cal-client/cal-client.c')
-rw-r--r-- | calendar/cal-client/cal-client.c | 36 |
1 files changed, 31 insertions, 5 deletions
diff --git a/calendar/cal-client/cal-client.c b/calendar/cal-client/cal-client.c index e81ff9afa3..cd8c8713d6 100644 --- a/calendar/cal-client/cal-client.c +++ b/calendar/cal-client/cal-client.c @@ -1,8 +1,6 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* Evolution calendar client * - * Copyright (C) 2000 Helix Code, Inc. - * Copyright (C) 2000 Ximian, Inc. + * Copyright (C) 2001 Ximian, Inc. * * Author: Federico Mena-Quintero <federico@ximian.com> * @@ -21,7 +19,10 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. */ +#ifdef HAVE_CONFIG_H #include <config.h> +#endif + #include <gtk/gtksignal.h> #include <liboaf/liboaf.h> @@ -44,7 +45,7 @@ struct _CalClientPrivate { /* The calendar factory we are contacting */ GNOME_Evolution_Calendar_CalFactory factory; - /* Our calendar listener */ + /* Our calendar listener implementation */ CalListener *listener; /* The calendar client interface object we are contacting */ @@ -73,7 +74,6 @@ static GtkObjectClass *parent_class; /** * cal_client_get_type: - * @void: * * Registers the #CalClient class if necessary, and returns the type ID assigned * to it. @@ -1505,3 +1505,29 @@ cal_client_remove_object (CalClient *client, const char *uid) CORBA_exception_free (&ev); return retval; } + +/** + * cal_client_get_query: + * @client: A calendar client. + * @sexp: S-expression representing the query. + * + * Creates a live query object from a loaded calendar. + * + * Return value: A query object that will emit notification signals as calendar + * components are added and removed from the query in the server. + **/ +CalQuery * +cal_client_get_query (CalClient *client, const char *sexp) +{ + CalClientPrivate *priv; + + g_return_val_if_fail (client != NULL, NULL); + g_return_val_if_fail (IS_CAL_CLIENT (client), NULL); + + priv = client->priv; + g_return_val_if_fail (priv->load_state == CAL_CLIENT_LOAD_LOADED, FALSE); + + g_return_val_if_fail (sexp != NULL, NULL); + + return cal_query_new (priv->cal, sexp); +} |