a11y: Adapt to menu button changes

This commit is contained in:
Matthias Clasen 2019-05-18 04:58:08 +00:00
parent 6a7d70cc9f
commit 9111541807
2 changed files with 6 additions and 4 deletions

View File

@ -22,13 +22,15 @@
#include "gtkmenubuttonaccessible.h"
G_DEFINE_TYPE (GtkMenuButtonAccessible, gtk_menu_button_accessible, GTK_TYPE_TOGGLE_BUTTON_ACCESSIBLE)
G_DEFINE_TYPE (GtkMenuButtonAccessible, gtk_menu_button_accessible, GTK_TYPE_WIDGET_ACCESSIBLE)
static void
gtk_menu_button_accessible_initialize (AtkObject *accessible,
gpointer data)
{
ATK_OBJECT_CLASS (gtk_menu_button_accessible_parent_class)->initialize (accessible, data);
accessible->role = ATK_ROLE_TOGGLE_BUTTON;
}
static gint

View File

@ -22,7 +22,7 @@
#error "Only <gtk/gtk-a11y.h> can be included directly."
#endif
#include <gtk/a11y/gtktogglebuttonaccessible.h>
#include <gtk/a11y/gtkwidgetaccessible.h>
G_BEGIN_DECLS
@ -39,14 +39,14 @@ typedef struct _GtkMenuButtonAccessiblePrivate GtkMenuButtonAccessiblePrivate;
struct _GtkMenuButtonAccessible
{
GtkToggleButtonAccessible parent;
GtkWidgetAccessible parent;
GtkMenuButtonAccessiblePrivate *priv;
};
struct _GtkMenuButtonAccessibleClass
{
GtkToggleButtonAccessibleClass parent_class;
GtkWidgetAccessibleClass parent_class;
};
GDK_AVAILABLE_IN_ALL