Commit c0df6f96 authored by Benjamin Otte's avatar Benjamin Otte

menushell: Use GtkMenuShellAccessible as a11y object

Previously it was only used by GtkMenuBar, and that's a naming mismatch.
parent 54e1caa4
......@@ -52,7 +52,6 @@
#include "gtkintl.h"
#include "gtkprivate.h"
#include "gtktypebuiltins.h"
#include "a11y/gtkmenushellaccessible.h"
#define BORDER_SPACING 0
#define DEFAULT_IPADDING 1
......@@ -230,8 +229,6 @@ gtk_menu_bar_class_init (GtkMenuBarClass *class)
GTK_PARAM_READABLE));
g_type_class_add_private (gobject_class, sizeof (GtkMenuBarPrivate));
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_MENU_SHELL_ACCESSIBLE);
}
static void
......
......@@ -54,6 +54,7 @@
#include "gtkprivate.h"
#include "gtkintl.h"
#include "gtktypebuiltins.h"
#include "a11y/gtkmenushellaccessible.h"
#define MENU_SHELL_TIMEOUT 500
......@@ -422,6 +423,8 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass)
TRUE,
GTK_PARAM_READWRITE));
gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_MENU_SHELL_ACCESSIBLE);
g_type_class_add_private (object_class, sizeof (GtkMenuShellPrivate));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment