From 8815ccf5c4a61e878b5e64277e7e1fc9d4decab3 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 18 Jul 2011 14:22:03 +0200 Subject: [PATCH] calendar: Use gtk_widget_class_accessible_set_role() --- gtk/gtkcalendar.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c index 227f4d22a6..c8eac51368 100644 --- a/gtk/gtkcalendar.c +++ b/gtk/gtkcalendar.c @@ -393,7 +393,6 @@ static gboolean gtk_calendar_drag_drop (GtkWidget *widget, gint y, guint time); -static AtkObject *gtk_calendar_get_accessible (GtkWidget *widget); static void calendar_start_spinning (GtkCalendar *calendar, gint click_child); @@ -457,7 +456,7 @@ gtk_calendar_class_init (GtkCalendarClass *class) widget_class->drag_drop = gtk_calendar_drag_drop; widget_class->drag_data_received = gtk_calendar_drag_data_received; - widget_class->get_accessible = gtk_calendar_get_accessible; + gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_CALENDAR); /** * GtkCalendar:year: @@ -3558,18 +3557,6 @@ gtk_calendar_drag_data_received (GtkWidget *widget, g_object_thaw_notify (G_OBJECT (calendar)); } -static AtkObject * -gtk_calendar_get_accessible (GtkWidget *widget) -{ - AtkObject *obj; - - obj = GTK_WIDGET_CLASS (gtk_calendar_parent_class)->get_accessible (widget); - - atk_object_set_role (obj, ATK_ROLE_CALENDAR); - - return obj; -} - /**************************************** * Public API *