[gtksourceview/wip/chergert/vim] add getter



commit 3cbe69ff54b911afc2a70c75149d2700f50f3497
Author: Christian Hergert <chergert redhat com>
Date:   Thu Nov 11 16:31:38 2021 -0800

    add getter

 gtksourceview/vim/gtk-source-vim-motion.c | 8 ++++++++
 gtksourceview/vim/gtk-source-vim-motion.h | 1 +
 2 files changed, 9 insertions(+)
---
diff --git a/gtksourceview/vim/gtk-source-vim-motion.c b/gtksourceview/vim/gtk-source-vim-motion.c
index 2849809e..10993433 100644
--- a/gtksourceview/vim/gtk-source-vim-motion.c
+++ b/gtksourceview/vim/gtk-source-vim-motion.c
@@ -2093,6 +2093,14 @@ do_inclusive:
        return ret;
 }
 
+gboolean
+gtk_source_vim_motion_get_apply_on_leave (GtkSourceVimMotion *self)
+{
+       g_return_val_if_fail (GTK_SOURCE_IS_VIM_MOTION (self), FALSE);
+
+       return self->apply_on_leave;
+}
+
 void
 gtk_source_vim_motion_set_apply_on_leave (GtkSourceVimMotion *self,
                                           gboolean            apply_on_leave)
diff --git a/gtksourceview/vim/gtk-source-vim-motion.h b/gtksourceview/vim/gtk-source-vim-motion.h
index fd199c3c..5fd0703a 100644
--- a/gtksourceview/vim/gtk-source-vim-motion.h
+++ b/gtksourceview/vim/gtk-source-vim-motion.h
@@ -45,6 +45,7 @@ GtkSourceVimState *gtk_source_vim_motion_new_down                  (int
 GtkSourceVimState *gtk_source_vim_motion_new_line_start            (void);
 void               gtk_source_vim_motion_set_linewise_keyval       (GtkSourceVimMotion *self,
                                                                     guint               keyval);
+gboolean           gtk_source_vim_motion_get_apply_on_leave        (GtkSourceVimMotion *self);
 void               gtk_source_vim_motion_set_apply_on_leave        (GtkSourceVimMotion *self,
                                                                     gboolean            apply_on_leave);
 void               gtk_source_vim_motion_set_mark                  (GtkSourceVimMotion *self,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]