[gtk+] calendar: Add an element name
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] calendar: Add an element name
- Date: Wed, 28 Oct 2015 14:21:15 +0000 (UTC)
commit 2c2fd5c8c5a06cdbcd52249d2cf0fa1ac2336267
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 28 06:35:33 2015 -0400
calendar: Add an element name
This will allow us to drop hardcoded type names in the theme.
gtk/gtkcalendar.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c
index 42157c2..1c735cf 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]