[gtksourceview] Completion: simplify visible_provider_changed()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Completion: simplify visible_provider_changed()
- Date: Mon, 4 Mar 2013 16:07:28 +0000 (UTC)
commit ee7ab24b455b9be503a84378c92d1a463bfe37ef
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Feb 26 23:19:21 2013 +0100
Completion: simplify visible_provider_changed()
gtksourceview/gtksourcecompletion.c | 16 ++--------------
1 files changed, 2 insertions(+), 14 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 5360a37..a90a84d 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -598,23 +598,11 @@ visible_provider_changed (GtkSourceCompletion *completion)
if (gtk_tree_selection_get_selected (selection, NULL, &iter))
{
- GtkTreePath *path;
-
- path = gtk_tree_model_get_path (GTK_TREE_MODEL (completion->priv->model_proposals), &iter);
-
- gtk_tree_view_scroll_to_cell (completion->priv->tree_view_proposals,
- path,
- NULL,
- FALSE,
- 0,
- 0);
- gtk_tree_path_free (path);
+ scroll_to_iter (completion, &iter);
}
else
{
- gtk_tree_view_scroll_to_point (completion->priv->tree_view_proposals,
- 0,
- 0);
+ gtk_tree_view_scroll_to_point (completion->priv->tree_view_proposals, 0, 0);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]