[gtksourceview/wip/chergert/vim] symmetry



commit 15c065774d8de427359c5282c6131e48928e6211
Author: Christian Hergert <chergert redhat com>
Date:   Fri Oct 29 12:40:32 2021 -0700

    symmetry

 gtksourceview/vim/gtk-source-vim-command.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/gtksourceview/vim/gtk-source-vim-command.c b/gtksourceview/vim/gtk-source-vim-command.c
index 545211ae..124c7c12 100644
--- a/gtksourceview/vim/gtk-source-vim-command.c
+++ b/gtksourceview/vim/gtk-source-vim-command.c
@@ -154,9 +154,18 @@ gtk_source_vim_command_repeat (GtkSourceVimState *state)
        command (self);
 }
 
+static void
+gtk_source_vim_command_enter (GtkSourceVimState *state)
+{
+       g_assert (GTK_SOURCE_IS_VIM_COMMAND (state));
+
+}
+
 static void
 gtk_source_vim_command_leave (GtkSourceVimState *state)
 {
+       g_assert (GTK_SOURCE_IS_VIM_COMMAND (state));
+
        gtk_source_vim_command_repeat (state);
 }
 
@@ -237,6 +246,7 @@ gtk_source_vim_command_class_init (GtkSourceVimCommandClass *klass)
        object_class->set_property = gtk_source_vim_command_set_property;
 
        state_class->append_command = gtk_source_vim_command_append_command;
+       state_class->enter = gtk_source_vim_command_enter;
        state_class->leave = gtk_source_vim_command_leave;
        state_class->repeat = gtk_source_vim_command_repeat;
 


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