summaryrefslogtreecommitdiffstats
path: root/equipment.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-11-18 11:13:02 -0200
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-11-18 11:13:02 -0200
commit842b05415fac862e73cdbf3446dc801dbd2c156a (patch)
treee8285d740ae1e615a515d5880373465a764f5d5f /equipment.c
parent9930e1ecadc5cf1990978c00772a09776791da26 (diff)
downloadsubsurface-842b05415fac862e73cdbf3446dc801dbd2c156a.tar.gz
Make all the normal widgets uneditable and non-focusing
We always keep the focus on the dive list, so that the random gtk focus handling doesn't suddenly randomly make us edit the combo boxes when the cursor up/down keys start changing them instead of the dive list. This means that dive location, notes and buddy/divemaster aren't editable at all any more, but I'll fix that by making a separate dive edit popup window. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'equipment.c')
-rw-r--r--equipment.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/equipment.c b/equipment.c
index f86e63b20..b5e60dfe1 100644
--- a/equipment.c
+++ b/equipment.c
@@ -853,6 +853,7 @@ static GtkWidget *cylinder_list_create(void)
);
cylinder_list.model = model;
tree_view = gtk_tree_view_new_with_model(GTK_TREE_MODEL(model));
+ gtk_widget_set_can_focus(tree_view, FALSE);
g_signal_connect(tree_view, "row-activated", G_CALLBACK(row_activated_cb), model);
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree_view));