[gtksourceview] Completion: select first proposal when population is done
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Completion: select first proposal when population is done
- Date: Sat, 26 Jan 2013 15:34:09 +0000 (UTC)
commit e8d65f32971d2e2f92f43b2819a8d7cdfd9343dc
Author: SÃbastien Wilmet <swilmet gnome org>
Date: Tue Jan 22 13:03:32 2013 +0100
Completion: select first proposal when population is done
Indeed, the code was not correct.
gtksourceview/gtksourcecompletion.c | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 6b07266..719d2fd 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -3197,17 +3197,7 @@ populating_done (GtkSourceCompletion *completion,
if (completion->priv->select_on_show)
{
- /* CHECK: does this actually work? */
- GtkTreeSelection *selection;
-
- selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (completion->priv->tree_view_proposals));
-
- if (gtk_tree_selection_count_selected_rows (selection) == 0)
- {
- GtkTreePath *path = gtk_tree_path_new_first ();
- gtk_tree_selection_select_path (selection, path);
- gtk_tree_path_free (path);
- }
+ check_first_selected (completion);
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]