[gtk+/font-chooser] calendar: Use gtk_widget_class_accessible_set_role()
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/font-chooser] calendar: Use gtk_widget_class_accessible_set_role()
- Date: Wed, 20 Jul 2011 20:18:53 +0000 (UTC)
commit 5613975ad7f9702dbfdd5d2e814c8f3902820dd6
Author: Benjamin Otte <otte gnome org>
Date: Mon Jul 18 14:22:03 2011 +0200
calendar: Use gtk_widget_class_accessible_set_role()
gtk/gtkcalendar.c | 15 +--------------
1 files changed, 1 insertions(+), 14 deletions(-)
---
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c
index 227f4d2..c8eac51 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 *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]