[gtk/kill-containers: 33/99] popover: Fix accessible implementation



commit b133f6247ec6f05ab56991ac140d1224e9ca0276
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri May 8 01:27:41 2020 -0400

    popover: Fix accessible implementation
    
    Now that GtkPopover is no longer a container,
    update the accessible implementation to match.

 gtk/a11y/gtkpopoveraccessible.c | 2 +-
 gtk/a11y/gtkpopoveraccessible.h | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/a11y/gtkpopoveraccessible.c b/gtk/a11y/gtkpopoveraccessible.c
index a530f4aa84..6d222a5f5a 100644
--- a/gtk/a11y/gtkpopoveraccessible.c
+++ b/gtk/a11y/gtkpopoveraccessible.c
@@ -25,7 +25,7 @@
 
 typedef struct _GtkPopoverAccessiblePrivate GtkPopoverAccessiblePrivate;
 
-G_DEFINE_TYPE (GtkPopoverAccessible, gtk_popover_accessible, GTK_TYPE_CONTAINER_ACCESSIBLE)
+G_DEFINE_TYPE (GtkPopoverAccessible, gtk_popover_accessible, GTK_TYPE_WIDGET_ACCESSIBLE)
 
 static void
 popover_update_modality (AtkObject  *object,
diff --git a/gtk/a11y/gtkpopoveraccessible.h b/gtk/a11y/gtkpopoveraccessible.h
index 539449e4d3..fc6d83954b 100644
--- a/gtk/a11y/gtkpopoveraccessible.h
+++ b/gtk/a11y/gtkpopoveraccessible.h
@@ -24,7 +24,7 @@
 #error "Only <gtk/gtk-a11y.h> can be included directly."
 #endif
 
-#include <gtk/a11y/gtkcontaineraccessible.h>
+#include <gtk/a11y/gtkwidgetaccessible.h>
 
 G_BEGIN_DECLS
 
@@ -40,12 +40,12 @@ typedef struct _GtkPopoverAccessibleClass   GtkPopoverAccessibleClass;
 
 struct _GtkPopoverAccessible
 {
-  GtkContainerAccessible parent;
+  GtkWidgetAccessible parent;
 };
 
 struct _GtkPopoverAccessibleClass
 {
-  GtkContainerAccessibleClass parent_class;
+  GtkWidgetAccessibleClass parent_class;
 };
 
 GDK_AVAILABLE_IN_ALL


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]