[gnome-builder/wip/chergert/layout] todo: don't allow selection from todo treeview
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/layout] todo: don't allow selection from todo treeview
- Date: Thu, 6 Jul 2017 21:58:34 +0000 (UTC)
commit ff19dd7e7f3ad6f90d94a657525d241ba933068c
Author: Christian Hergert <chergert redhat com>
Date: Thu Jul 6 14:57:42 2017 -0700
todo: don't allow selection from todo treeview
For the same reason as the previous commit for buildui.
Selections indicate a current position, and that changes as
soon as the editor moves it's cursor.
plugins/todo/gbp-todo-panel.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/todo/gbp-todo-panel.c b/plugins/todo/gbp-todo-panel.c
index f227bdf..c0e8e5c 100644
--- a/plugins/todo/gbp-todo-panel.c
+++ b/plugins/todo/gbp-todo-panel.c
@@ -277,6 +277,7 @@ static void
gbp_todo_panel_init (GbpTodoPanel *self)
{
GtkWidget *scroller;
+ GtkTreeSelection *selection;
scroller = g_object_new (GTK_TYPE_SCROLLED_WINDOW,
"visible", TRUE,
@@ -302,6 +303,9 @@ gbp_todo_panel_init (GbpTodoPanel *self)
self);
gtk_container_add (GTK_CONTAINER (scroller), GTK_WIDGET (self->tree_view));
+ selection = gtk_tree_view_get_selection (self->tree_view);
+ gtk_tree_selection_set_mode (selection, GTK_SELECTION_NONE);
+
ide_fancy_tree_view_set_data_func (IDE_FANCY_TREE_VIEW (self->tree_view),
gbp_todo_panel_cell_data_func, NULL, NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]