diff --git a/gtk/a11y/gtkatspicontext.c b/gtk/a11y/gtkatspicontext.c index 55bfbb5dd6..9d1a1fb0a4 100644 --- a/gtk/a11y/gtkatspicontext.c +++ b/gtk/a11y/gtkatspicontext.c @@ -1541,7 +1541,7 @@ gtk_at_spi_context_announce (GtkATContext *context, if (self->connection == NULL) return; - guint atk_live = priority == GTK_ACCESSIBLE_ANNOUNCEMENT_PRIORITY_ASSERTIVE ? 2 : 1; + guint atk_live = priority == GTK_ACCESSIBLE_ANNOUNCEMENT_PRIORITY_HIGH ? 2 : 1; g_dbus_connection_emit_signal (self->connection, NULL, diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h index 8af4bcd0c6..ef5859b7da 100644 --- a/gtk/gtkenums.h +++ b/gtk/gtkenums.h @@ -1802,19 +1802,20 @@ typedef enum { /*< prefix=GTK_ACCESSIBLE_SORT >*/ } GtkAccessibleSort; /** - * GtkAccessibleAnnouncementPriority: - * @GTK_ACCESSIBLE_ANNOUNCEMENT_PRIORITY_POLITE: The announcement is not - * important enough to interrupt the user. - * @GTK_ACCESSIBLE_ANNOUNCEMENT_PRIORITY_ASSERTIVE: The announcement is - * important enough to interrupt the user. - * - * The possible values for an accessible announcement priority. + * GTK_ANNOUNCEMENT_PRIORITY: + * + * @GTK_ANNOUNCEMENT_PRIORITY_LOW: The announcement is low priority, and might be read only on the user's request. + * @GTK_ANNOUNCEMENT_PRIORITY_MEDIUM: The announcement is of medium priority, and is usually spoken only after announcements. + * @GTK_ANNOUNCEMENT_PRIORITY_HIGH: The announcement is of high priority, and is usually spoken immediately. + * + * The priority of an accessibility announcement. */ typedef enum { - GTK_ACCESSIBLE_ANNOUNCEMENT_PRIORITY_POLITE, - GTK_ACCESSIBLE_ANNOUNCEMENT_PRIORITY_ASSERTIVE -} GtkAccessibleAnnouncementPriority; - + GTK_ACCESSIBLE_ANNOUNCEMENT_PRIORITY_LOW, + GTK_ACCESSIBLE_ANNOUNCEMENT_PRIORITY_MEDIUM, + GTK_ACCESSIBLE_ANNOUNCEMENT_PRIORITY_HIGH +} GtkAccessibleAnnouncementPriority; + /** * GtkPopoverMenuFlags: * @GTK_POPOVER_MENU_SLIDING: Submenus are presented as sliding submenus that