summaryrefslogtreecommitdiff
path: root/gtk/gtkprintcontext.h
diff options
context:
space:
mode:
authorAlexander Mikhaylenko <alexm@gnome.org>2021-01-20 17:13:59 +0500
committerAlexander Mikhaylenko <alexm@gnome.org>2021-01-20 17:19:05 +0500
commit7a966ec60eb8411c252805240cfb2d0e905faab8 (patch)
tree27746e7fd2fe4392e307fd149a084dcab81c8a76 /gtk/gtkprintcontext.h
parentd7050c63aec46b0c265b21911bcc44331b3aa92c (diff)
downloadgtk+-wip/exalm/searchbar.tar.gz
searchbar: Don't activate type-to-search when focusing entrieswip/exalm/searchbar
Currently using GtkSearchBar:key-capture-widget steals focus from unrelated entries within the key capture widget, which is a common case when the key capture widget is the window containing the search bar. In theory it can be fixed by switching the propagation phase to bubble, but there's a good chance that keypresses will then be intercepted by some other widget when not wanted. So, instead do a hack and check the type of the focused widget, skipping if it's a GtkEditable or GtkTextView, and additionally has the `editable` property set to TRUE. Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3606
Diffstat (limited to 'gtk/gtkprintcontext.h')
0 files changed, 0 insertions, 0 deletions