mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 23:24:16 +00:00
messagedialog: Use gtk_widget_class_set_accessible_role()
This commit is contained in:
parent
6379faaa90
commit
c40875ad51
@ -111,8 +111,6 @@ gtk_window_accessible_initialize (AtkObject *obj,
|
|||||||
|
|
||||||
if (GTK_IS_FONT_SELECTION_DIALOG (widget))
|
if (GTK_IS_FONT_SELECTION_DIALOG (widget))
|
||||||
obj->role = ATK_ROLE_FONT_CHOOSER;
|
obj->role = ATK_ROLE_FONT_CHOOSER;
|
||||||
else if (GTK_IS_MESSAGE_DIALOG (widget))
|
|
||||||
obj->role = ATK_ROLE_ALERT;
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const gchar *name;
|
const gchar *name;
|
||||||
|
@ -177,6 +177,8 @@ gtk_message_dialog_class_init (GtkMessageDialogClass *class)
|
|||||||
|
|
||||||
widget_class->style_updated = gtk_message_dialog_style_updated;
|
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->set_property = gtk_message_dialog_set_property;
|
||||||
gobject_class->get_property = gtk_message_dialog_get_property;
|
gobject_class->get_property = gtk_message_dialog_get_property;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user