menushell: Use GtkMenuShellAccessible as a11y object

Previously it was only used by GtkMenuBar, and that's a naming mismatch.
This commit is contained in:
Benjamin Otte
2011-07-18 18:28:58 +02:00
parent 54e1caa428
commit c0df6f9622
2 changed files with 3 additions and 3 deletions

View File

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

View File

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