[gtksourceview] Completion: remove text_view_editable_cb()



commit 68bccd438c8806ab44ddd44d4461ad4b48f21100
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Feb 23 16:57:30 2013 +0100

    Completion: remove text_view_editable_cb()
    
    It is useless to block interactive completion when the GtkTextView is
    not editable, because when the GtkTextView is not editable, the signals
    that trigger interactive completion won't be emitted.

 gtksourceview/gtksourcecompletion.c |   21 ---------------------
 1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index e7e8c4d..3399f3d 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -1524,21 +1524,6 @@ buffer_paste_done_cb (GtkTextBuffer       *buffer,
 }
 
 static void
-text_view_editable_cb (GtkTextView         *view,
-                       GParamSpec          *spec,
-                       GtkSourceCompletion *completion)
-{
-       if (gtk_text_view_get_editable (view))
-       {
-               gtk_source_completion_unblock_interactive (completion);
-       }
-       else
-       {
-               gtk_source_completion_block_interactive (completion);
-       }
-}
-
-static void
 connect_view (GtkSourceCompletion *completion)
 {
        GtkTextBuffer *buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (completion->priv->view));
@@ -1561,12 +1546,6 @@ connect_view (GtkSourceCompletion *completion)
                                 completion,
                                 0);
 
-       g_signal_connect_object (completion->priv->view,
-                                "notify::editable",
-                                G_CALLBACK (text_view_editable_cb),
-                                completion,
-                                0);
-
        g_signal_connect_object (buffer,
                                 "mark-set",
                                 G_CALLBACK (buffer_mark_set_cb),


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