diff options
author | Christian Hergert <chergert@redhat.com> | 2022-08-31 17:56:50 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2022-08-31 17:56:50 -0700 |
commit | 4cbbbc0e812ea524b8e6738f8cb57b5807c37a04 (patch) | |
tree | 686f3af504a49974181703d8caafe952d7d77332 /gtksourceview/gtksourceview-assistants.c | |
parent | 978b2dec617d3ae5f8f1428243ce4f0d29b28380 (diff) | |
download | gtksourceview-4cbbbc0e812ea524b8e6738f8cb57b5807c37a04.tar.gz |
view: hide assistants on scroll events
We still need to handle some cases better, particularly with completion
and ensuring hover assistants can break on scroll internally, but it's a
start towards that.
Diffstat (limited to 'gtksourceview/gtksourceview-assistants.c')
-rw-r--r-- | gtksourceview/gtksourceview-assistants.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtksourceview/gtksourceview-assistants.c b/gtksourceview/gtksourceview-assistants.c index 5f7c6639..459c6fbf 100644 --- a/gtksourceview/gtksourceview-assistants.c +++ b/gtksourceview/gtksourceview-assistants.c @@ -114,7 +114,7 @@ _gtk_source_view_assistants_size_allocate (GtkSourceViewAssistants *assistants, } } -static gboolean +gboolean _gtk_source_view_assistants_hide_all (GtkSourceViewAssistants *assistants) { gboolean ret = FALSE; @@ -129,7 +129,7 @@ _gtk_source_view_assistants_hide_all (GtkSourceViewAssistants *assistants) if (gtk_widget_get_visible (GTK_WIDGET (assistant))) { - gtk_popover_popdown (GTK_POPOVER (assistant)); + gtk_widget_hide (GTK_POPOVER (assistant)); ret = TRUE; } } |