From c40875ad51c093279929bb5e052fcbd43d93bf0f Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 18 Jul 2011 17:55:30 +0200 Subject: [PATCH] messagedialog: Use gtk_widget_class_set_accessible_role() --- gtk/a11y/gtkwindowaccessible.c | 2 -- gtk/gtkmessagedialog.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/a11y/gtkwindowaccessible.c b/gtk/a11y/gtkwindowaccessible.c index ab041fd2f9..ee3bbc6837 100644 --- a/gtk/a11y/gtkwindowaccessible.c +++ b/gtk/a11y/gtkwindowaccessible.c @@ -111,8 +111,6 @@ gtk_window_accessible_initialize (AtkObject *obj, if (GTK_IS_FONT_SELECTION_DIALOG (widget)) obj->role = ATK_ROLE_FONT_CHOOSER; - else if (GTK_IS_MESSAGE_DIALOG (widget)) - obj->role = ATK_ROLE_ALERT; else { const gchar *name; diff --git a/gtk/gtkmessagedialog.c b/gtk/gtkmessagedialog.c index 673319adf5..bd3a1306ee 100644 --- a/gtk/gtkmessagedialog.c +++ b/gtk/gtkmessagedialog.c @@ -177,6 +177,8 @@ gtk_message_dialog_class_init (GtkMessageDialogClass *class) widget_class->style_updated = gtk_message_dialog_style_updated; + gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_ALERT); + gobject_class->set_property = gtk_message_dialog_set_property; gobject_class->get_property = gtk_message_dialog_get_property;