aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/tasks-control.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2002-02-14 21:02:59 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2002-02-14 21:02:59 +0800
commit378a7c56b720dd4240d192c859737ea19e709fbf (patch)
tree45f82ede882ca6ad9fa16e0a059e4a0140e7ec03 /calendar/gui/tasks-control.c
parentde5b206ef73db4f87f19ae4e5b943c28334425a8 (diff)
downloadgsoc2013-evolution-378a7c56b720dd4240d192c859737ea19e709fbf.tar.gz
gsoc2013-evolution-378a7c56b720dd4240d192c859737ea19e709fbf.tar.zst
gsoc2013-evolution-378a7c56b720dd4240d192c859737ea19e709fbf.zip
don't append 'calendar.ics' to the URI. (get_prop): finished.
2002-02-13 Rodrigo Moya <rodrigo@ximian.com> * gui/control-factory.c (set_prop): don't append 'calendar.ics' to the URI. (get_prop): finished. * gui/tasks-control.c (tasks_control_set_property): don't append 'tasks.ics' to the URI. (tasks_control_get_property): finished. * gui/gnome-cal.c (gnome_calendar_open): * gui/e-tasks.c (e_tasks_open): append $filename.ics to the uri to be opened if the uri is local. Leave intact in other cases. svn path=/trunk/; revision=15724
Diffstat (limited to 'calendar/gui/tasks-control.c')
-rw-r--r--calendar/gui/tasks-control.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/calendar/gui/tasks-control.c b/calendar/gui/tasks-control.c
index 22d87a1e08..08e363fe8e 100644
--- a/calendar/gui/tasks-control.c
+++ b/calendar/gui/tasks-control.c
@@ -150,17 +150,14 @@ tasks_control_get_property (BonoboPropertyBag *bag,
CORBA_Environment *ev,
gpointer user_data)
{
- /*GnomeCalendar *gcal = user_data;*/
+ ETasks *tasks = user_data;
+ char *uri;
switch (arg_id) {
case TASKS_CONTROL_PROPERTY_URI_IDX:
- /*
- if (fb && fb->uri)
- BONOBO_ARG_SET_STRING (arg, fb->uri);
- else
- BONOBO_ARG_SET_STRING (arg, "");
- */
+ uri = cal_client_get_uri (e_tasks_get_cal_client (tasks));
+ BONOBO_ARG_SET_STRING (arg, uri);
break;
default:
@@ -177,15 +174,11 @@ tasks_control_set_property (BonoboPropertyBag *bag,
gpointer user_data)
{
ETasks *tasks = user_data;
- char *filename;
switch (arg_id) {
case TASKS_CONTROL_PROPERTY_URI_IDX:
- filename = g_strdup_printf ("%s/tasks.ics",
- BONOBO_ARG_GET_STRING (arg));
- e_tasks_open (tasks, filename);
- g_free (filename);
+ e_tasks_open (tasks, BONOBO_ARG_GET_STRING (arg));
break;
default: