[gtk+] Fix GtkStatusbarAccessible
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Fix GtkStatusbarAccessible
- Date: Wed, 18 Oct 2017 15:31:33 +0000 (UTC)
commit 9da057568c59a9a57d26c7718535f4e92062c56b
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 18 17:20:14 2017 +0200
Fix GtkStatusbarAccessible
GtkStatusbar is no longer a container, so GtkStatusbarAccessible
can no longer be a container accessible.
gtk/a11y/gtkstatusbaraccessible.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/gtk/a11y/gtkstatusbaraccessible.c b/gtk/a11y/gtkstatusbaraccessible.c
index 7d84a5a..d21fc72 100644
--- a/gtk/a11y/gtkstatusbaraccessible.c
+++ b/gtk/a11y/gtkstatusbaraccessible.c
@@ -22,7 +22,7 @@
#include "gtkstatusbaraccessible.h"
-G_DEFINE_TYPE (GtkStatusbarAccessible, gtk_statusbar_accessible, GTK_TYPE_CONTAINER_ACCESSIBLE)
+G_DEFINE_TYPE (GtkStatusbarAccessible, gtk_statusbar_accessible, GTK_TYPE_WIDGET_ACCESSIBLE)
static void
text_changed (GtkStatusbar *statusbar,
@@ -128,18 +128,11 @@ static void
gtk_statusbar_accessible_class_init (GtkStatusbarAccessibleClass *klass)
{
AtkObjectClass *class = ATK_OBJECT_CLASS (klass);
- GtkContainerAccessibleClass *container_class = (GtkContainerAccessibleClass*)klass;
class->get_name = gtk_statusbar_accessible_get_name;
class->get_n_children = gtk_statusbar_accessible_get_n_children;
class->ref_child = gtk_statusbar_accessible_ref_child;
class->initialize = gtk_statusbar_accessible_initialize;
- /*
- * As we report the statusbar as having no children
- * we are not interested in add and remove signals
- */
- container_class->add_gtk = NULL;
- container_class->remove_gtk = NULL;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]