[gnumeric] GUI: Make button notebook not focusable.



commit 0579cced177be1b2467552289a5f07e1adb0936d
Author: Morten Welinder <terra gnome org>
Date:   Fri May 3 20:24:06 2013 -0400

    GUI: Make button notebook not focusable.

 ChangeLog     |    2 ++
 src/wbc-gtk.c |    4 +++-
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6c7c4aa..2acfa41 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
 
        * src/wbc-gtk.c (create_undo_redo): Add Ctrl-Shift-z as alternate
        accelerator for redo.  Fixes #699579.
+       (wbc_gtk_create_notebook_area): Mark the button notebook as non
+       focusable.
 
        * src/sheet.c (sheet_range_set_text_cb): Add redraw.
 
diff --git a/src/wbc-gtk.c b/src/wbc-gtk.c
index 35237ee..e868a3b 100644
--- a/src/wbc-gtk.c
+++ b/src/wbc-gtk.c
@@ -951,7 +951,9 @@ wbc_gtk_create_notebook_area (WBCGtk *wbcg)
 {
        GtkWidget *placeholder;
 
-       wbcg->bnotebook = g_object_new (GNM_NOTEBOOK_TYPE, NULL);
+       wbcg->bnotebook = g_object_new (GNM_NOTEBOOK_TYPE,
+                                       "can-focus", FALSE,
+                                       NULL);
        g_object_ref (wbcg->bnotebook);
 
        g_signal_connect_after (G_OBJECT (wbcg->bnotebook),


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