[gnome-builder/wip/chergert/layout] project-tree: activate on single click
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/layout] project-tree: activate on single click
- Date: Wed, 12 Jul 2017 23:58:35 +0000 (UTC)
commit 3e7cc321cddccdd7e04abcdee5cd4ba7a54a7288
Author: Christian Hergert <chergert redhat com>
Date: Wed Jul 12 16:57:36 2017 -0700
project-tree: activate on single click
We are trying to feel more like a ListBox here, so we should be
consistent with click actions across our navigation widgets.
plugins/project-tree/gb-project-tree.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plugins/project-tree/gb-project-tree.c b/plugins/project-tree/gb-project-tree.c
index fae1acc..a1782a9 100644
--- a/plugins/project-tree/gb-project-tree.c
+++ b/plugins/project-tree/gb-project-tree.c
@@ -314,12 +314,11 @@ gb_project_tree_class_init (GbProjectTreeClass *klass)
static void
gb_project_tree_init (GbProjectTree *self)
{
- GtkStyleContext *style_context;
DzlTreeBuilder *builder;
GMenu *menu;
- style_context = gtk_widget_get_style_context (GTK_WIDGET (self));
- gtk_style_context_add_class (style_context, "project-tree");
+ dzl_gtk_widget_add_style_class (GTK_WIDGET (self), "project-tree");
+ gtk_tree_view_set_activate_on_single_click (GTK_TREE_VIEW (self), TRUE);
self->settings = g_settings_new ("org.gnome.builder.project-tree");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]