diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-07-28 03:41:54 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-07-28 03:41:54 +0800 |
commit | bfd6635397f29dc7b0ad6b6a27101c241a7287b6 (patch) | |
tree | d7453e58c0a5a87dd2b80ca9a68f64f29d0aedfe /modules/calendar/e-cal-shell-view-actions.c | |
parent | b4c93f77e655cfd0a2a740502d7b67bc60df4523 (diff) | |
download | gsoc2013-evolution-bfd6635397f29dc7b0ad6b6a27101c241a7287b6.tar gsoc2013-evolution-bfd6635397f29dc7b0ad6b6a27101c241a7287b6.tar.gz gsoc2013-evolution-bfd6635397f29dc7b0ad6b6a27101c241a7287b6.tar.bz2 gsoc2013-evolution-bfd6635397f29dc7b0ad6b6a27101c241a7287b6.tar.lz gsoc2013-evolution-bfd6635397f29dc7b0ad6b6a27101c241a7287b6.tar.xz gsoc2013-evolution-bfd6635397f29dc7b0ad6b6a27101c241a7287b6.tar.zst gsoc2013-evolution-bfd6635397f29dc7b0ad6b6a27101c241a7287b6.zip |
Get GnomeCalendar and the a11y stuff building.
Diffstat (limited to 'modules/calendar/e-cal-shell-view-actions.c')
-rw-r--r-- | modules/calendar/e-cal-shell-view-actions.c | 48 |
1 files changed, 45 insertions, 3 deletions
diff --git a/modules/calendar/e-cal-shell-view-actions.c b/modules/calendar/e-cal-shell-view-actions.c index 1358a0615c..f3ed11e33d 100644 --- a/modules/calendar/e-cal-shell-view-actions.c +++ b/modules/calendar/e-cal-shell-view-actions.c @@ -397,7 +397,23 @@ static void action_event_all_day_new_cb (GtkAction *action, ECalShellView *cal_shell_view) { - /* FIXME */ + ECalShellContent *cal_shell_content; + GnomeCalendarViewType view_type; + ECalendarView *calendar_view; + GnomeCalendar *calendar; + + /* These are just for readability. */ + gboolean all_day = TRUE; + gboolean meeting = FALSE; + gboolean no_past_date = FALSE; + + cal_shell_content = cal_shell_view->priv->cal_shell_content; + calendar = e_cal_shell_content_get_calendar (cal_shell_content); + view_type = gnome_calendar_get_view (calendar); + calendar_view = gnome_calendar_get_calendar_view (calendar, view_type); + + e_calendar_view_new_appointment_full ( + calendar_view, all_day, meeting, no_past_date); } static void @@ -486,7 +502,23 @@ static void action_event_meeting_new_cb (GtkAction *action, ECalShellView *cal_shell_view) { - /* FIXME */ + ECalShellContent *cal_shell_content; + GnomeCalendarViewType view_type; + ECalendarView *calendar_view; + GnomeCalendar *calendar; + + /* These are just for readability. */ + gboolean all_day = FALSE; + gboolean meeting = TRUE; + gboolean no_past_date = FALSE; + + cal_shell_content = cal_shell_view->priv->cal_shell_content; + calendar = e_cal_shell_content_get_calendar (cal_shell_content); + view_type = gnome_calendar_get_view (calendar); + calendar_view = gnome_calendar_get_calendar_view (calendar, view_type); + + e_calendar_view_new_appointment_full ( + calendar_view, all_day, meeting, no_past_date); } static void @@ -500,7 +532,17 @@ static void action_event_new_cb (GtkAction *action, ECalShellView *cal_shell_view) { - /* FIXME */ + ECalShellContent *cal_shell_content; + GnomeCalendarViewType view_type; + ECalendarView *calendar_view; + GnomeCalendar *calendar; + + cal_shell_content = cal_shell_view->priv->cal_shell_content; + calendar = e_cal_shell_content_get_calendar (cal_shell_content); + view_type = gnome_calendar_get_view (calendar); + calendar_view = gnome_calendar_get_calendar_view (calendar, view_type); + + e_calendar_view_new_appointment (calendar_view); } static void |