[gtk+] a11y: Only care about GtkOrientable::orientation
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] a11y: Only care about GtkOrientable::orientation
- Date: Fri, 9 Mar 2012 12:23:37 +0000 (UTC)
commit 50e3f532b93f7d7eb755804a80c69eac79ca078e
Author: Benjamin Otte <otte redhat com>
Date: Fri Mar 9 13:18:52 2012 +0100
a11y: Only care about GtkOrientable::orientation
There are other widgets (like PanelToplevel) that aren't a GtkOrientable
but still have that property.
gtk/a11y/gtkwidgetaccessible.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/a11y/gtkwidgetaccessible.c b/gtk/a11y/gtkwidgetaccessible.c
index ff31743..c386eb3 100644
--- a/gtk/a11y/gtkwidgetaccessible.c
+++ b/gtk/a11y/gtkwidgetaccessible.c
@@ -465,7 +465,8 @@ gtk_widget_accessible_notify_gtk (GObject *obj,
state = ATK_STATE_SENSITIVE;
value = gtk_widget_get_sensitive (widget);
}
- else if (g_strcmp0 (pspec->name, "orientation") == 0)
+ else if (g_strcmp0 (pspec->name, "orientation") == 0 &&
+ GTK_IS_ORIENTABLE (widget))
{
GtkOrientable *orientable;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]