widget: Add :focus-on-click property

There are currently three widget that implement such a property, and
there are other widgets for which the behavior can make sense. It
seems like a good time to add the property to GtkWidget itself so
subclasses can choose to respect it without adding their own property.

https://bugzilla.gnome.org/show_bug.cgi?id=757269
This commit is contained in:
Florian Müllner
2015-10-23 18:07:41 +02:00
committed by Matthias Clasen
parent 7d8a3a52ce
commit ebdf5f581d
3 changed files with 87 additions and 1 deletions

View File

@ -56,6 +56,7 @@ struct _GtkWidgetPrivate
guint sensitive : 1;
guint can_focus : 1;
guint has_focus : 1;
guint focus_on_click : 1;
guint can_default : 1;
guint has_default : 1;
guint receives_default : 1;