aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorSeth Alves <alves@src.gnome.org>2000-04-19 21:39:43 +0800
committerSeth Alves <alves@src.gnome.org>2000-04-19 21:39:43 +0800
commit528fe3b08ead2edcf246a49fdd0089ace5a83cc0 (patch)
tree10bfd24ad7c3a6474c627db40bea078ccdac144c /shell
parentf3a84bec06a82e86b7903d01e13589d0fcf4a2bc (diff)
downloadgsoc2013-evolution-528fe3b08ead2edcf246a49fdd0089ace5a83cc0.tar.gz
gsoc2013-evolution-528fe3b08ead2edcf246a49fdd0089ace5a83cc0.tar.zst
gsoc2013-evolution-528fe3b08ead2edcf246a49fdd0089ace5a83cc0.zip
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
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 :