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 /calendar/gui/ea-gnome-calendar.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 'calendar/gui/ea-gnome-calendar.c')
-rw-r--r-- | calendar/gui/ea-gnome-calendar.c | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/calendar/gui/ea-gnome-calendar.c b/calendar/gui/ea-gnome-calendar.c index 78fd50fc69..8947845f0d 100644 --- a/calendar/gui/ea-gnome-calendar.c +++ b/calendar/gui/ea-gnome-calendar.c @@ -23,6 +23,7 @@ #include "ea-gnome-calendar.h" #include "calendar-commands.h" +#include "e-calendar-view.h" #include <string.h> #include <gtk/gtk.h> #include <libecal/e-cal-time-util.h> @@ -36,8 +37,6 @@ static G_CONST_RETURN gchar * ea_gnome_calendar_get_description (AtkObject *acce static gint ea_gnome_calendar_get_n_children (AtkObject* obj); static AtkObject * ea_gnome_calendar_ref_child (AtkObject *obj, gint i); -static void ea_gcal_switch_view_cb (GtkNotebook *widget, GtkNotebookPage *page, - guint index, gpointer data); static void ea_gcal_dates_change_cb (GnomeCalendar *gcal, gpointer data); static gpointer parent_class = NULL; @@ -104,7 +103,6 @@ ea_gnome_calendar_new (GtkWidget *widget) GObject *object; AtkObject *accessible; GnomeCalendar *gcal; - GtkWidget *notebook; g_return_val_if_fail (GNOME_IS_CALENDAR (widget), NULL); @@ -122,12 +120,6 @@ ea_gnome_calendar_new (GtkWidget *widget) g_signal_connect (widget, "dates_shown_changed", G_CALLBACK (ea_gcal_dates_change_cb), accessible); - notebook = gnome_calendar_get_view_notebook_widget (gcal); - if (notebook) { - g_signal_connect (notebook, "switch_page", - G_CALLBACK (ea_gcal_switch_view_cb), - accessible); - } #ifdef ACC_DEBUG printf ("EvoAcc: ea-gnome-calendar created: %p\n", (gpointer)accessible); @@ -260,7 +252,7 @@ ea_gnome_calendar_get_n_children (AtkObject* obj) if (!GTK_ACCESSIBLE (obj)->widget) return -1; - return 3; + return 2; } static AtkObject * @@ -295,11 +287,6 @@ ea_gnome_calendar_ref_child (AtkObject *obj, gint i) childWidget = gnome_calendar_get_e_calendar_widget (calendarWidget); child = gtk_widget_get_accessible (childWidget); break; - case 2: - /* for todo list */ - childWidget = GTK_WIDGET (gnome_calendar_get_task_pad (calendarWidget)); - child = gtk_widget_get_accessible (childWidget); - break; default: break; } @@ -309,26 +296,6 @@ ea_gnome_calendar_ref_child (AtkObject *obj, gint i) } static void -ea_gcal_switch_view_cb (GtkNotebook *widget, GtkNotebookPage *page, - guint index, gpointer data) -{ - GtkWidget *new_widget; - - new_widget = gtk_notebook_get_nth_page (widget, index); - - /* views are always the second child in gnome calendar - */ - if (new_widget) - g_signal_emit_by_name (G_OBJECT(data), "children_changed::add", - 1, gtk_widget_get_accessible (new_widget), NULL); - -#ifdef ACC_DEBUG - printf ("AccDebug: view switch to widget %p (index=%d) \n", - (gpointer)new_widget, index); -#endif -} - -static void ea_gcal_dates_change_cb (GnomeCalendar *gcal, gpointer data) { const gchar *new_name; |