[gtksourceview/wip/chergert/vim: 30/363] done manager overwrite here




commit c5556b655291de06b4fd25bff5cd471d171df807
Author: Christian Hergert <chergert redhat com>
Date:   Fri Oct 22 11:28:24 2021 -0700

    done manager overwrite here

 gtksourceview/gtksourcevimimcontext.c | 9 ---------
 1 file changed, 9 deletions(-)
---
diff --git a/gtksourceview/gtksourcevimimcontext.c b/gtksourceview/gtksourcevimimcontext.c
index d2164e9a..8334188c 100644
--- a/gtksourceview/gtksourcevimimcontext.c
+++ b/gtksourceview/gtksourcevimimcontext.c
@@ -58,21 +58,12 @@ gtk_source_vim_im_context_set_client_widget (GtkIMContext *context,
 
        g_return_if_fail (GTK_SOURCE_IS_VIM_IM_CONTEXT (self));
 
-       if (!GTK_SOURCE_IS_VIEW (widget))
-       {
-               gtk_text_view_set_overwrite (GTK_TEXT_VIEW (widget), FALSE);
-               return;
-       }
-
        if (self->vim != NULL)
        {
                g_object_run_dispose (G_OBJECT (self->vim));
                g_clear_object (&self->vim);
        }
 
-       /* Emulate block cursor with "overwrite" */
-       gtk_text_view_set_overwrite (GTK_TEXT_VIEW (widget), TRUE);
-
        self->vim = gtk_source_vim_new (GTK_SOURCE_VIEW (widget));
 
        g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_COMMAND_TEXT]);


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