diff options
author | Seth Alves <alves@src.gnome.org> | 2000-04-19 21:39:43 +0800 |
---|---|---|
committer | Seth Alves <alves@src.gnome.org> | 2000-04-19 21:39:43 +0800 |
commit | 528fe3b08ead2edcf246a49fdd0089ace5a83cc0 (patch) | |
tree | 10bfd24ad7c3a6474c627db40bea078ccdac144c /calendar/gui/main.c | |
parent | f3a84bec06a82e86b7903d01e13589d0fcf4a2bc (diff) | |
download | gsoc2013-evolution-528fe3b08ead2edcf246a49fdd0089ace5a83cc0.tar gsoc2013-evolution-528fe3b08ead2edcf246a49fdd0089ace5a83cc0.tar.gz gsoc2013-evolution-528fe3b08ead2edcf246a49fdd0089ace5a83cc0.tar.bz2 gsoc2013-evolution-528fe3b08ead2edcf246a49fdd0089ace5a83cc0.tar.lz gsoc2013-evolution-528fe3b08ead2edcf246a49fdd0089ace5a83cc0.tar.xz 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 'calendar/gui/main.c')
-rw-r--r-- | calendar/gui/main.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/calendar/gui/main.c b/calendar/gui/main.c index 871485750f..904868513e 100644 --- a/calendar/gui/main.c +++ b/calendar/gui/main.c @@ -44,10 +44,10 @@ static GList *start_views; static time_t from_t, to_t; /* If set, show events for the specified date and quit */ -static int show_events; +/*static int show_events;*/ /* If set, show todo items quit */ -static int show_todo; +/*static int show_todo;*/ /* If true, do not show our top level window */ int startup_hidden = 0; @@ -76,6 +76,8 @@ same_day (struct tm *a, struct tm *b) a->tm_year == b->tm_year); } + +#if 0 static void dump_events (void) { @@ -134,8 +136,10 @@ dump_events (void) /* calendar_destroy (cal); DELETE */ exit (0); } +#endif /* 0 */ +#if 0 static void dump_todo (void) { @@ -178,6 +182,8 @@ dump_todo (void) /* calendar_destroy (cal); DELETE */ exit (0); } +#endif /* 0 */ + static void session_die (void) @@ -269,13 +275,17 @@ parse_an_arg (poptContext ctx, start_calendars = g_list_append (start_calendars, arg); break; + /* case TODO_KEY: show_todo = 1; break; - + */ + + /* case 'e': show_events = 1; break; + */ case HIDDEN_KEY: startup_hidden = 1; @@ -339,11 +349,13 @@ main (int argc, char **argv) process_dates (); +# if 0 if (show_events) dump_events (); if (show_todo) dump_todo (); +# endif /* 0 */ client = gnome_master_client (); if (client) { |