From 528fe3b08ead2edcf246a49fdd0089ace5a83cc0 Mon Sep 17 00:00:00 2001 From: Seth Alves Date: Wed, 19 Apr 2000 13:39:43 +0000 Subject: set calendar's uri with a property bag * e-shell-view.c (get_view): set calendar's uri with a property bag * gui/evolution-calendar-control.c (calendar_properties_init): create a property bag for this control (set_prop): callback for property sets (get_prop): callback for proprety gets * gui/calendar-commands.c (calendar_set_uri): new function, called when the "calendar_uri" property is set on the calendar- control's property bag. svn path=/trunk/; revision=2501 --- shell/e-shell-view.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'shell/e-shell-view.c') diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index ce77f55055..e18af8550d 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -150,9 +150,25 @@ get_view (EShellView *eshell_view, EFolder *efolder, Bonobo_UIHandler uih) w = bonobo_widget_new_control ("control:addressbook", uih); break; - case E_FOLDER_CALENDAR : + case E_FOLDER_CALENDAR : { + gchar *user_cal_file; + BonoboPropertyBagClient *pbc; + BonoboControlFrame *cf; + w = bonobo_widget_new_control ("control:calendar", uih); + cf = bonobo_widget_get_control_frame (BONOBO_WIDGET (w)); + pbc = bonobo_control_frame_get_control_property_bag (cf); + /*pbc = bonobo_control_get_property_bag (w);*/ + + user_cal_file = + g_concat_dir_and_file (gnome_util_user_home (), + ".gnome/user-cal.vcf"); + + bonobo_property_bag_client_set_value_string (pbc, + "calendar_uri", + user_cal_file); break; + } case E_FOLDER_TASKS : case E_FOLDER_OTHER : -- cgit