[gtk/matthiasc/for-master: 7/7] atspi: Give model buttons a click action too
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 7/7] atspi: Give model buttons a click action too
- Date: Thu, 22 Oct 2020 01:20:20 +0000 (UTC)
commit 1badc34a90c083a86b699bbe34f8808c33882f9f
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 21 19:13:03 2020 -0400
atspi: Give model buttons a click action too
GtkModelButton is no longer derived from GtkButton,
but can still treat it like a button for the purposes
of having a click action. This lets ATs activate
menu items again.
gtk/a11y/gtkatspiaction.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gtk/a11y/gtkatspiaction.c b/gtk/a11y/gtkatspiaction.c
index 2c28c0fbbd..42392a00f3 100644
--- a/gtk/a11y/gtkatspiaction.c
+++ b/gtk/a11y/gtkatspiaction.c
@@ -32,6 +32,7 @@
#include "gtkbutton.h"
#include "gtkentryprivate.h"
#include "gtkexpander.h"
+#include "gtkmodelbuttonprivate.h"
#include "gtkpasswordentryprivate.h"
#include "gtkswitch.h"
#include "gtkwidgetprivate.h"
@@ -810,7 +811,8 @@ static const GDBusInterfaceVTable widget_action_vtable = {
const GDBusInterfaceVTable *
gtk_atspi_get_action_vtable (GtkAccessible *accessible)
{
- if (GTK_IS_BUTTON (accessible))
+ if (GTK_IS_BUTTON (accessible) ||
+ GTK_IS_MODEL_BUTTON (accessible))
return &button_action_vtable;
else if (GTK_IS_ENTRY (accessible))
return &entry_action_vtable;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]