[gtksourceview] Completion: simplify on_row_inserted_cb()



commit 1d930debe735c0b8e449bb7d0fe57a0a0d520310
Author: SÃbastien Wilmet <swilmet gnome org>
Date:   Tue Jan 22 12:48:09 2013 +0100

    Completion: simplify on_row_inserted_cb()
    
    Now we are sure that the completion window is visible when
    on_row_inserted_cb() is called.

 gtksourceview/gtksourcecompletion.c |   23 -----------------------
 1 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 72568aa..5f7b23a 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -2139,29 +2139,6 @@ on_row_inserted_cb (GtkTreeModel        *tree_model,
                     GtkTreeIter         *iter,
                     GtkSourceCompletion *completion)
 {
-	if (!gtk_widget_get_visible (completion->priv->window))
-	{
-		if (!completion->priv->remember_info_visibility)
-		{
-			completion->priv->info_visible = FALSE;
-		}
-
-		gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (completion->priv->info_button),
-					      completion->priv->info_visible);
-
-		DEBUG({
-			g_print ("Emitting show\n");
-		});
-
-		g_signal_emit (completion, signals[SHOW], 0);
-	}
-	else
-	{
-		DEBUG({
-			g_print ("Already visible\n");
-		});
-	}
-
 	check_first_selected (completion);
 }
 



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