[gtksourceview/wip/chergert/vim: 36/73] done manager overwrite here




commit 48b48d3419ef14ba275175b8abf89e07c3c159e3
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]