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:
		@ -465,7 +465,8 @@ gtk_widget_accessible_notify_gtk (GObject    *obj,
 | 
				
			|||||||
      state = ATK_STATE_SENSITIVE;
 | 
					      state = ATK_STATE_SENSITIVE;
 | 
				
			||||||
      value = gtk_widget_get_sensitive (widget);
 | 
					      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;
 | 
					      GtkOrientable *orientable;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user