]> Pileus Git - ~andy/gtk/commitdiff
a11y: Only care about GtkOrientable::orientation
authorBenjamin Otte <otte@redhat.com>
Fri, 9 Mar 2012 12:18:52 +0000 (13:18 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 9 Mar 2012 12:23:05 +0000 (13:23 +0100)
There are other widgets (like PanelToplevel) that aren't a GtkOrientable
but still have that property.

gtk/a11y/gtkwidgetaccessible.c

index ff317434646f169cbe881ee28372d1b028ce1b9a..c386eb3ef9c63a570bf5c7212488a0fb2b7ddaf3 100644 (file)
@@ -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;