diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-05-05 14:57:21 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-05-10 23:24:48 -0400 |
commit | edc31a264c6778274376e892dc38ab186c952c4a (patch) | |
tree | 90f976c6f00ba5803249f5db904e65b97ee0cde5 /gtk/gtkwidget.h | |
parent | f6a4e68973fcf78504e320453c576abb789d9e03 (diff) | |
download | gtk+-edc31a264c6778274376e892dc38ab186c952c4a.tar.gz |
widget: Add a :focusable property
Add back a property that determines whether an individual
widget will accept focus or not. :can-focus prevents the
focus from ever entering the entire widget hierarchy
below a widget, and :focusable just determines if grabbing
the focus to the widget itself will succeed.
See #2686
Diffstat (limited to 'gtk/gtkwidget.h')
-rw-r--r-- | gtk/gtkwidget.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index 7352eded9a..f18ae9899e 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -406,6 +406,11 @@ void gtk_widget_set_can_focus (GtkWidget *widget, GDK_AVAILABLE_IN_ALL gboolean gtk_widget_get_can_focus (GtkWidget *widget); GDK_AVAILABLE_IN_ALL +void gtk_widget_set_focusable (GtkWidget *widget, + gboolean focusable); +GDK_AVAILABLE_IN_ALL +gboolean gtk_widget_get_focusable (GtkWidget *widget); +GDK_AVAILABLE_IN_ALL gboolean gtk_widget_has_focus (GtkWidget *widget); GDK_AVAILABLE_IN_ALL gboolean gtk_widget_is_focus (GtkWidget *widget); |