In compose window, prevent account selection combobox to get focus when navigating...
authorAndrej Kacian <andrej@kacian.sk>
Wed, 18 Jun 2014 19:03:54 +0000 (21:03 +0200)
committerAndrej Kacian <andrej@kacian.sk>
Wed, 18 Jun 2014 19:03:54 +0000 (21:03 +0200)
src/compose.c

index 8c7952bca5473431e62d62f502cb5ed4ad84a143..801697e74b078be71a8c0f3d7101db0f8e15e5b7 100644 (file)
@@ -8101,6 +8101,11 @@ static GtkWidget *compose_account_option_menu_create(Compose *compose)
 
        gtk_box_pack_start(GTK_BOX(hbox), optmenubox, FALSE, FALSE, 0);
        gtk_box_pack_start(GTK_BOX(hbox), from_name, TRUE, TRUE, 0);
 
        gtk_box_pack_start(GTK_BOX(hbox), optmenubox, FALSE, FALSE, 0);
        gtk_box_pack_start(GTK_BOX(hbox), from_name, TRUE, TRUE, 0);
+
+       GList *l = NULL;
+       l = g_list_prepend(l, from_name);
+       gtk_container_set_focus_chain(GTK_CONTAINER(hbox), l);
+       g_list_free(l);
        
        CLAWS_SET_TIP(optmenubox,
                _("Account to use for this email"));
        
        CLAWS_SET_TIP(optmenubox,
                _("Account to use for this email"));