From c5433e852b02de39cc4ca5b5a9cb67f1ad87745b Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 15 Dec 2011 23:02:54 +0100 Subject: [PATCH] gtk: Add accessible types for cell renderers --- gtk/gtkcellrendererpixbuf.c | 3 +++ gtk/gtkcellrenderertext.c | 3 +++ gtk/gtkcellrenderertoggle.c | 3 +++ 3 files changed, 9 insertions(+) diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c index 6fec484dce..ec9890b435 100644 --- a/gtk/gtkcellrendererpixbuf.c +++ b/gtk/gtkcellrendererpixbuf.c @@ -25,6 +25,7 @@ #include "gtkicontheme.h" #include "gtkintl.h" #include "gtkprivate.h" +#include "a11y/gtkimagecellaccessible.h" /** @@ -251,6 +252,8 @@ gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class) g_type_class_add_private (object_class, sizeof (GtkCellRendererPixbufPrivate)); + + _gtk_cell_renderer_class_set_accessible_type (cell_class, GTK_TYPE_IMAGE_CELL_ACCESSIBLE); } static void diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c index c5eed2e23b..ea8973cff4 100644 --- a/gtk/gtkcellrenderertext.c +++ b/gtk/gtkcellrenderertext.c @@ -30,6 +30,7 @@ #include "gtkintl.h" #include "gtkprivate.h" #include "gtktreeprivate.h" +#include "a11y/gtktextcellaccessible.h" /** @@ -700,6 +701,8 @@ gtk_cell_renderer_text_class_init (GtkCellRendererTextClass *class) G_TYPE_STRING); g_type_class_add_private (object_class, sizeof (GtkCellRendererTextPrivate)); + + _gtk_cell_renderer_class_set_accessible_type (cell_class, GTK_TYPE_TEXT_CELL_ACCESSIBLE); } static void diff --git a/gtk/gtkcellrenderertoggle.c b/gtk/gtkcellrenderertoggle.c index 2c8debdec1..3b4a70ec18 100644 --- a/gtk/gtkcellrenderertoggle.c +++ b/gtk/gtkcellrenderertoggle.c @@ -24,6 +24,7 @@ #include "gtkmarshalers.h" #include "gtkprivate.h" #include "gtktreeprivate.h" +#include "a11y/gtkbooleancellaccessible.h" /** @@ -196,6 +197,8 @@ gtk_cell_renderer_toggle_class_init (GtkCellRendererToggleClass *class) G_TYPE_STRING); g_type_class_add_private (object_class, sizeof (GtkCellRendererTogglePrivate)); + + _gtk_cell_renderer_class_set_accessible_type (cell_class, GTK_TYPE_BOOLEAN_CELL_ACCESSIBLE); } static void