[balsa/wip/gtk4] Fix the build without focus-chains



commit 17b0104319fe986723ff2b20f0688aaacb9766af
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Aug 1 09:42:36 2018 -0400

    Fix the build without focus-chains
    
    Now we need to figure out how to manage keynav without them…

 src/balsa-mime-widget-callbacks.c | 6 ++++++
 src/main-window.c                 | 4 ++++
 2 files changed, 10 insertions(+)
---
diff --git a/src/balsa-mime-widget-callbacks.c b/src/balsa-mime-widget-callbacks.c
index f66a6bb25..991e3ee72 100644
--- a/src/balsa-mime-widget-callbacks.c
+++ b/src/balsa-mime-widget-callbacks.c
@@ -264,13 +264,16 @@ balsa_mime_widget_key_press_event(GtkEventControllerKey *key_controller,
 void
 balsa_mime_widget_check_focus(GtkWidget * widget, GParamSpec * pspec, BalsaMessage * bm)
 {
+#if 0
     GtkContainer *container =
         GTK_CONTAINER(balsa_mime_widget_get_container(balsa_message_get_bm_widget(bm)));
+#endif
     BalsaMessageFocusState focus_state;
 
     focus_state = balsa_message_get_focus_state(bm);
 
     if (gtk_widget_has_focus(widget)) {
+#if 0
         /* Disable can_focus on other message parts so that TAB does not
          * attempt to move the focus on them. */
         GList *list;
@@ -278,11 +281,14 @@ balsa_mime_widget_check_focus(GtkWidget * widget, GParamSpec * pspec, BalsaMessa
         list = g_list_append(NULL, widget);
         gtk_container_set_focus_chain(container, list);
         g_list_free(list);
+#endif
 
         if (focus_state == BALSA_MESSAGE_FOCUS_STATE_NO)
             balsa_message_set_focus_state(bm, BALSA_MESSAGE_FOCUS_STATE_YES);
     } else {
+#if 0
         gtk_container_unset_focus_chain(container);
+#endif
 
         if (balsa_message_get_message(bm) != NULL) {
             if (focus_state == BALSA_MESSAGE_FOCUS_STATE_HOLD) {
diff --git a/src/main-window.c b/src/main-window.c
index 8a367c28f..d65a36474 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -492,7 +492,9 @@ bw_create_index_widget(BalsaWindow *bw)
     BalsaWindowPrivate *priv = balsa_window_get_instance_private(bw);
     GtkWidget *vbox, *button;
     unsigned i;
+#if 0
     GList *focusable_widgets;
+#endif
 
     if(!view_filters_translated) {
         for(i=0; i<G_N_ELEMENTS(view_filters); i++)
@@ -533,9 +535,11 @@ bw_create_index_widget(BalsaWindow *bw)
     gtk_widget_set_vexpand(priv->notebook, TRUE);
     gtk_box_pack_start(GTK_BOX(vbox), priv->notebook);
 
+#if 0
     focusable_widgets = g_list_append(NULL, priv->notebook);
     gtk_container_set_focus_chain(GTK_CONTAINER(vbox), focusable_widgets);
     g_list_free(focusable_widgets);
+#endif
 
     gtk_widget_set_sensitive(button, FALSE);
 


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