From 2c2fd5c8c5a06cdbcd52249d2cf0fa1ac2336267 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 28 Oct 2015 06:35:33 -0400 Subject: [PATCH] calendar: Add an element name This will allow us to drop hardcoded type names in the theme. --- gtk/gtkcalendar.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c index 42157c2a1e..1c735cf64d 100644 --- a/gtk/gtkcalendar.c +++ b/gtk/gtkcalendar.c @@ -385,8 +385,6 @@ gtk_calendar_class_init (GtkCalendarClass *class) widget_class->drag_drop = gtk_calendar_drag_drop; widget_class->drag_data_received = gtk_calendar_drag_data_received; - gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_CALENDAR); - /** * GtkCalendar:year: * @@ -680,6 +678,9 @@ gtk_calendar_class_init (GtkCalendarClass *class) NULL, NULL, _gtk_marshal_VOID__VOID, G_TYPE_NONE, 0); + + gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_CALENDAR); + gtk_widget_class_set_css_name (widget_class, "calendar"); } static void