messagedialog: Use gtk_widget_class_set_accessible_role()

This commit is contained in:
Benjamin Otte 2011-07-18 17:55:30 +02:00
parent 6379faaa90
commit c40875ad51
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;