[goffice] make keyboard navigation work again in plot subtypes.



commit 3d8ca1134b59a0cd45176b6f3b70daa4aab2a3e1
Author: Jean Brefort <jean brefort normalesup org>
Date:   Fri Jan 15 12:55:48 2010 +0100

    make keyboard navigation work again in plot subtypes.

 ChangeLog                |    5 +++++
 goffice/graph/gog-guru.c |    3 +++
 2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7e309fc..142692c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-15  Jean Brefort  <jean brefort normalesup org>
+
+	* goffice/graph/gog-guru.c (graph_guru_type_selector_new): make keyboard
+	navigation work again in plot subtypes.
+
 2010-01-14  Jean Brefort  <jean brefort normalesup org>
 
 	* goffice/graph/gog-guru-type-selector.ui: a better plot type selector.
diff --git a/goffice/graph/gog-guru.c b/goffice/graph/gog-guru.c
index 0bf27ce..1097daf 100644
--- a/goffice/graph/gog-guru.c
+++ b/goffice/graph/gog-guru.c
@@ -1193,6 +1193,9 @@ graph_guru_type_selector_new (GraphGuruState *s)
 		"swapped_signal::focus_in_event", G_CALLBACK (typesel_set_selection_color), typesel,
 		"swapped_signal::focus_out_event", G_CALLBACK (typesel_set_selection_color), typesel,
 		NULL);
+	gtk_widget_set_can_focus (typesel->canvas, TRUE);
+	gtk_label_set_mnemonic_widget (GTK_LABEL (gtk_builder_get_object (gui, "subtype_label")),
+			   typesel->canvas);
 	gtk_widget_set_size_request (typesel->canvas,
 		MINOR_PIXMAP_WIDTH*3 + BORDER*5,
 		MINOR_PIXMAP_HEIGHT*3 + BORDER*4);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]