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 | |
parent | b4c93f77e655cfd0a2a740502d7b67bc60df4523 (diff) | |
download | gsoc2013-evolution-bfd6635397f29dc7b0ad6b6a27101c241a7287b6.tar.gz gsoc2013-evolution-bfd6635397f29dc7b0ad6b6a27101c241a7287b6.tar.zst gsoc2013-evolution-bfd6635397f29dc7b0ad6b6a27101c241a7287b6.zip |
Get GnomeCalendar and the a11y stuff building.
Diffstat (limited to 'modules/calendar')
-rw-r--r-- | modules/calendar/e-cal-shell-view-actions.c | 48 | ||||
-rw-r--r-- | modules/calendar/e-cal-shell-view-private.c | 4 |
2 files changed, 47 insertions, 5 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 diff --git a/modules/calendar/e-cal-shell-view-private.c b/modules/calendar/e-cal-shell-view-private.c index 19d29a05fb..c6d10292c3 100644 --- a/modules/calendar/e-cal-shell-view-private.c +++ b/modules/calendar/e-cal-shell-view-private.c @@ -442,7 +442,7 @@ e_cal_shell_view_execute_search (ECalShellView *cal_shell_view) text = e_shell_content_get_search_text (shell_content); shell_window = e_shell_view_get_shell_window (shell_view); - action = GTK_RADIO_ACTION (ACTION (CAL_SEARCH_ANY_FIELD_CONTAINS)); + action = GTK_RADIO_ACTION (ACTION (CALENDAR_SEARCH_ANY_FIELD_CONTAINS)); value = gtk_radio_action_get_current_value (action); if (text == NULL || *text == '\0') { @@ -475,7 +475,7 @@ e_cal_shell_view_execute_search (ECalShellView *cal_shell_view) g_string_free (string, TRUE); range_search = FALSE; - range_start = range_end = 0; + start_range = end_range = 0; /* Apply selected filter. */ value = e_shell_content_get_filter_value (shell_content); |