Implement support for ATK_STATE_HAS_TOOLTIP
https://bugzilla.gnome.org/show_bug.cgi?id=738982
This commit is contained in:
committed by
Matthias Clasen
parent
318c97c959
commit
2893a71a3e
@ -395,6 +395,9 @@ gtk_widget_accessible_ref_state_set (AtkObject *accessible)
|
||||
else
|
||||
atk_state_set_add_state (state_set, ATK_STATE_VERTICAL);
|
||||
}
|
||||
|
||||
if (gtk_widget_get_has_tooltip (widget))
|
||||
atk_state_set_add_state (state_set, ATK_STATE_HAS_TOOLTIP);
|
||||
}
|
||||
return state_set;
|
||||
}
|
||||
@ -502,6 +505,11 @@ gtk_widget_accessible_notify_gtk (GObject *obj,
|
||||
state = ATK_STATE_HORIZONTAL;
|
||||
value = (gtk_orientable_get_orientation (orientable) == GTK_ORIENTATION_HORIZONTAL);
|
||||
}
|
||||
else if (g_strcmp0 (pspec->name, "has-tooltip") == 0)
|
||||
{
|
||||
state = ATK_STATE_HAS_TOOLTIP;
|
||||
value = gtk_widget_get_has_tooltip (widget);
|
||||
}
|
||||
else
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user