[gnome-builder] plugins/vim: use prioritized controller insertion
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] plugins/vim: use prioritized controller insertion
- Date: Tue, 6 Sep 2022 18:44:40 +0000 (UTC)
commit 8e6631b1c05dcb3d34bbc8d92983f7f45facb86c
Author: Christian Hergert <chergert redhat com>
Date: Tue Sep 6 11:44:34 2022 -0700
plugins/vim: use prioritized controller insertion
src/plugins/vim/gbp-vim-editor-page-addin.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/vim/gbp-vim-editor-page-addin.c b/src/plugins/vim/gbp-vim-editor-page-addin.c
index 8cb1f85c2..660eda255 100644
--- a/src/plugins/vim/gbp-vim-editor-page-addin.c
+++ b/src/plugins/vim/gbp-vim-editor-page-addin.c
@@ -124,7 +124,7 @@ gbp_vim_editor_page_addin_update (GbpVimEditorPageAddin *self)
{
self->enabled = TRUE;
gtk_im_context_set_client_widget (im_context, GTK_WIDGET (view));
- gtk_widget_add_controller (GTK_WIDGET (view), g_object_ref (self->key_controller));
+ ide_source_view_add_controller (view, -100, g_object_ref (self->key_controller));
}
IDE_EXIT;
@@ -134,7 +134,7 @@ disabled:
{
self->enabled = FALSE;
gtk_im_context_set_client_widget (im_context, NULL);
- gtk_widget_remove_controller (GTK_WIDGET (view), self->key_controller);
+ ide_source_view_remove_controller (view, self->key_controller);
gtk_event_controller_reset (self->key_controller);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]