a11y: Only care about GtkOrientable::orientation

There are other widgets (like PanelToplevel) that aren't a GtkOrientable
but still have that property.
This commit is contained in:
Benjamin Otte 2012-03-09 13:18:52 +01:00
parent 5d57981184
commit 50e3f532b9

View 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;