[gtksourceview/wip/completion-model: 14/17] Completion: remove on_row_{inserted, deleted}_cb()



commit 005db8fed85fb132728370eede47186375b338f7
Author: SÃbastien Wilmet <swilmet gnome org>
Date:   Tue Jan 22 13:27:47 2013 +0100

    Completion: remove on_row_{inserted,deleted}_cb()
    
    We can call check_first_selected() at other places, if needed.

 gtksourceview/gtksourcecompletion.c |   27 ---------------------------
 1 files changed, 0 insertions(+), 27 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 49cb7ef..42f5acb 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -2138,23 +2138,6 @@ check_first_selected (GtkSourceCompletion *completion)
 }
 
 static void
-on_row_inserted_cb (GtkTreeModel        *tree_model,
-                    GtkTreePath         *path,
-                    GtkTreeIter         *iter,
-                    GtkSourceCompletion *completion)
-{
-	check_first_selected (completion);
-}
-
-static void
-on_row_deleted_cb (GtkTreeModel        *tree_model,
-                   GtkTreePath         *path,
-                   GtkSourceCompletion *completion)
-{
-	check_first_selected (completion);
-}
-
-static void
 gtk_source_completion_hide_default (GtkSourceCompletion *completion)
 {
 	gtk_label_set_markup (GTK_LABEL (completion->priv->default_info), "");
@@ -2899,16 +2882,6 @@ replace_model (GtkSourceCompletion *completion)
 	gtk_source_completion_model_set_show_headers (completion->priv->model_proposals,
 				                      completion->priv->show_headers);
 
-	g_signal_connect_after (completion->priv->model_proposals,
-	                        "row-inserted",
-	                        G_CALLBACK (on_row_inserted_cb),
-	                        completion);
-
-	g_signal_connect_after (completion->priv->model_proposals,
-	                        "row-deleted",
-	                        G_CALLBACK (on_row_deleted_cb),
-	                        completion);
-
 	g_signal_connect (completion->priv->model_proposals,
 	                  "providers-changed",
 	                  G_CALLBACK (on_providers_changed),



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