aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog4
-rw-r--r--shell/e-shell-view.c18
2 files changed, 21 insertions, 1 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 6616d98314..de2478e268 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,7 @@
+2000-04-19 Seth Alves <alves@hungry.com>
+
+ * e-shell-view.c (get_view): set calendar's uri with a property bag
+
2000-04-19 Christopher James Lahey <clahey@helixcode.com>
* idl/folder.idl: New idl file. Still unused.
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 :