diff options
author | Benjamin Otte <otte@redhat.com> | 2012-07-09 02:29:16 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-07-09 02:29:16 +0200 |
commit | fb1b025cbf5a9b2901bbd9c33af21c083a779f45 (patch) | |
tree | 995a4f95f10887b8e653582de71a1ad984a4a1d0 /gtk/gtklockbutton.c | |
parent | 0dbf5db0e1f45b85f7b4d8bc96804f30f9836f2e (diff) | |
download | gtk+-fb1b025cbf5a9b2901bbd9c33af21c083a779f45.tar.gz |
a11y: Add separate accessible for GtkLockButton
The accessible doesn't do anything yet, this is just infrastructure
work.
Diffstat (limited to 'gtk/gtklockbutton.c')
-rw-r--r-- | gtk/gtklockbutton.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtklockbutton.c b/gtk/gtklockbutton.c index e1bdc1c144..6fc45367b8 100644 --- a/gtk/gtklockbutton.c +++ b/gtk/gtklockbutton.c @@ -24,6 +24,7 @@ #include "gtklabel.h" #include "gtksizegroup.h" #include "gtkintl.h" +#include "a11y/gtklockbuttonaccessible.h" /** * SECTION:gtklockbutton @@ -261,6 +262,7 @@ static void gtk_lock_button_class_init (GtkLockButtonClass *klass) { GObjectClass *gobject_class = G_OBJECT_CLASS (klass); + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); GtkButtonClass *button_class = GTK_BUTTON_CLASS (klass); gobject_class->finalize = gtk_lock_button_finalize; @@ -323,6 +325,8 @@ gtk_lock_button_class_init (GtkLockButtonClass *klass) G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); + + gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_LOCK_BUTTON_ACCESSIBLE); } static void |