From 842b05415fac862e73cdbf3446dc801dbd2c156a Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 18 Nov 2011 11:13:02 -0200 Subject: 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 --- equipment.c | 1 + 1 file changed, 1 insertion(+) (limited to 'equipment.c') 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)); -- cgit v1.2.3-70-g09d2