diff src/main.c @ 8241:1d68a254237b

[gaim-migrate @ 8964] From Padraig O'Briain (padraigob), "When a blind user uses gaim they expect the screen reader to speak the text of the label "Screen Name" when focus is on the login field. This is not possible as there is no logical connection between the widgets." committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 12 Feb 2004 17:58:53 +0000
parents fab67640b59f
children f24172f53650
line wrap: on
line diff
--- a/src/main.c	Thu Feb 12 17:51:21 2004 +0000
+++ b/src/main.c	Thu Feb 12 17:58:53 2004 +0000
@@ -257,6 +257,7 @@
 	gtk_box_pack_start(GTK_BOX(vbox2), label, FALSE, FALSE, 0);
 
 	name = gaim_gtk_account_option_menu_new(NULL, TRUE, G_CALLBACK(combo_changed), NULL, NULL);
+	gtk_label_set_mnemonic_widget(GTK_LABEL(label), name);
 
 	gtk_box_pack_start(GTK_BOX(vbox2), name, FALSE, TRUE, 0);
 	gtk_box_pack_start(GTK_BOX(vbox), vbox2, FALSE, TRUE, 0);
@@ -270,6 +271,7 @@
 	gtk_box_pack_start(GTK_BOX(vbox2), label, FALSE, FALSE, 0);
 
 	pass = gtk_entry_new();
+	gtk_label_set_mnemonic_widget(GTK_LABEL(label), pass);
 	gtk_entry_set_visibility(GTK_ENTRY(pass), FALSE);
 	g_signal_connect(G_OBJECT(pass), "activate",
 					 G_CALLBACK(dologin), mainwindow);