aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-commands.c
diff options
context:
space:
mode:
authorBolian Yin <bolian.yin@sun.com>2003-08-20 16:05:00 +0800
committerBolian Yin <byin@src.gnome.org>2003-08-20 16:05:00 +0800
commitef5eb5facdf293531569ca1d8b7ab7fd976fbe83 (patch)
tree5f8bce18e4c7ee5d6e31878b29facad4841f12f5 /calendar/gui/calendar-commands.c
parent7bb25afd430ffab77397d9fc4e6b756251ba31d8 (diff)
downloadgsoc2013-evolution-ef5eb5facdf293531569ca1d8b7ab7fd976fbe83.tar
gsoc2013-evolution-ef5eb5facdf293531569ca1d8b7ab7fd976fbe83.tar.gz
gsoc2013-evolution-ef5eb5facdf293531569ca1d8b7ab7fd976fbe83.tar.bz2
gsoc2013-evolution-ef5eb5facdf293531569ca1d8b7ab7fd976fbe83.tar.lz
gsoc2013-evolution-ef5eb5facdf293531569ca1d8b7ab7fd976fbe83.tar.xz
gsoc2013-evolution-ef5eb5facdf293531569ca1d8b7ab7fd976fbe83.tar.zst
gsoc2013-evolution-ef5eb5facdf293531569ca1d8b7ab7fd976fbe83.zip
Add a11y dependency. gui/calendar-commands.c
2003-08-20 Bolian Yin <bolian.yin@sun.com> * gui/Makefile.am : Add a11y dependency. * gui/calendar-commands.c (calendar_get_text_for_folder_bar_label) * gui/e-cal-view.c: Add two new events: "event_changed" and "event_added" * gui/e-day-view.c (e_day_view_class_init): init a11y. (e_day_view_find_event_from_item): make it public from private (e_day_view_update_event_cb): emit "event_changed" signal (e_day_view_reshape_day_event): emit "event_added" signal (e_day_view_reshape_long_event): emit "event_added" signal * gui/e-week-view.c (e_week_view_class_init): init a11y. (e_week_view_find_event_from_item): make it public from private (e_week_view_update_event_cb): emit "event_changed" signal (e_week_view_reshape_event_span): emit "event_added" signal * gui/gnome-cal.c (gnome_calendar_class_init): init a11y. (gnome_calendar_get_e_calendar_widget), (gnome_calendar_get_search_bar_widget), (gnome_calendar_get_view_notebook_widget): new functions svn path=/trunk/; revision=22303
Diffstat (limited to 'calendar/gui/calendar-commands.c')
-rw-r--r--calendar/gui/calendar-commands.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c
index cda78827df..6b91e79463 100644
--- a/calendar/gui/calendar-commands.c
+++ b/calendar/gui/calendar-commands.c
@@ -419,16 +419,15 @@ get_shell_view_interface (BonoboControl *control)
return shell_view;
}
-/* Displays the currently displayed time range in the folder bar label on the
- shell view, according to which view we are showing. */
-void
-calendar_set_folder_bar_label (GnomeCalendar *gcal, BonoboControl *control)
+const gchar *
+calendar_get_text_for_folder_bar_label (GnomeCalendar *gcal)
{
icaltimezone *zone;
struct icaltimetype start_tt, end_tt;
time_t start_time, end_time;
struct tm start_tm, end_tm;
- char buffer[512], end_buffer[256];
+ static char buffer[512];
+ char end_buffer[256];
GnomeCalendarViewType view;
gnome_calendar_get_visible_time_range (gcal, &start_time, &end_time);
@@ -512,8 +511,17 @@ calendar_set_folder_bar_label (GnomeCalendar *gcal, BonoboControl *control)
break;
default:
g_assert_not_reached ();
+ return NULL;
}
+ return buffer;
+}
+/* Displays the currently displayed time range in the folder bar label on the
+ shell view, according to which view we are showing. */
+void
+calendar_set_folder_bar_label (GnomeCalendar *gcal, BonoboControl *control)
+{
+ char *buffer = (char *)calendar_get_text_for_folder_bar_label (gcal);
control_util_set_folder_bar_label (control, buffer);
}