[gtk/wip/matthiasc/listview-2: 174/174] listbase: Fix focus tracking
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/listview-2: 174/174] listbase: Fix focus tracking
- Date: Fri, 29 May 2020 22:43:08 +0000 (UTC)
commit 75892724c8bbde6aa0af785510dfe644dce8c6cc
Author: Matthias Clasen <mclasen redhat com>
Date: Fri May 29 18:27:04 2020 -0400
listbase: Fix focus tracking
When we grab the focus on a child, update the focus
tracker so we have an accurate focus position to
work with.
gtk/gtklistbase.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtklistbase.c b/gtk/gtklistbase.c
index 8ec9bc8784..51f774f22d 100644
--- a/gtk/gtklistbase.c
+++ b/gtk/gtklistbase.c
@@ -1489,6 +1489,8 @@ gtk_list_base_grab_focus_on_item (GtkListBase *self,
return FALSE;
}
+ gtk_list_base_update_focus_tracker (self);
+
if (select)
gtk_list_base_select_item (self, pos, modify, extend);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]