[gtksourceview/wip/chergert/gsv-gtk4] view: check :enable-snippets when processing input
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4] view: check :enable-snippets when processing input
- Date: Wed, 9 Sep 2020 21:41:03 +0000 (UTC)
commit 574403b972fc31b546c417acde1bba254ceae3c7
Author: Christian Hergert <chergert redhat com>
Date: Wed Sep 9 14:40:58 2020 -0700
view: check :enable-snippets when processing input
gtksourceview/gtksourceview.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index 095c128a..8edc1494 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -4029,7 +4029,8 @@ gtk_source_view_key_pressed (GtkSourceView *view,
}
}
- if (_gtk_source_view_snippets_key_pressed (&priv->snippets, key, keycode, state))
+ if (priv->enable_snippets &&
+ _gtk_source_view_snippets_key_pressed (&priv->snippets, key, keycode, state))
{
return GDK_EVENT_STOP;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]