comparison src/main.c @ 8878:949107b156fd

[gaim-migrate @ 9647] patch from Nathan Fredrickson to make the login screen make a little more sense, and to make it more accessable. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Thu, 06 May 2004 01:51:29 +0000
parents ebbc39e0050d
children 7a67c459ab8f
comparison
equal deleted inserted replaced
8877:c8cd436b5840 8878:949107b156fd
250 vbox2 = gtk_vbox_new(FALSE, 0); 250 vbox2 = gtk_vbox_new(FALSE, 0);
251 gtk_container_set_border_width(GTK_CONTAINER(vbox2), 5); 251 gtk_container_set_border_width(GTK_CONTAINER(vbox2), 5);
252 252
253 /* why isn't there a gtk_label_new_with_markup? */ 253 /* why isn't there a gtk_label_new_with_markup? */
254 label = gtk_label_new(NULL); 254 label = gtk_label_new(NULL);
255 gtk_label_set_markup(GTK_LABEL(label), _("<b>Screen Name:</b>")); 255 gtk_label_set_markup_with_mnemonic(GTK_LABEL(label), _("<b>_Account:</b>"));
256 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); 256 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
257 gtk_box_pack_start(GTK_BOX(vbox2), label, FALSE, FALSE, 0); 257 gtk_box_pack_start(GTK_BOX(vbox2), label, FALSE, FALSE, 0);
258 258
259 name = gaim_gtk_account_option_menu_new(NULL, TRUE, G_CALLBACK(combo_changed), NULL, NULL); 259 name = gaim_gtk_account_option_menu_new(NULL, TRUE, G_CALLBACK(combo_changed), NULL, NULL);
260 gtk_label_set_mnemonic_widget(GTK_LABEL(label), name); 260 gtk_label_set_mnemonic_widget(GTK_LABEL(label), name);
264 264
265 vbox2 = gtk_vbox_new(FALSE, 0); 265 vbox2 = gtk_vbox_new(FALSE, 0);
266 gtk_container_set_border_width(GTK_CONTAINER(vbox2), 5); 266 gtk_container_set_border_width(GTK_CONTAINER(vbox2), 5);
267 267
268 label = gtk_label_new(NULL); 268 label = gtk_label_new(NULL);
269 gtk_label_set_markup(GTK_LABEL(label), _("<b>Password:</b>")); 269 gtk_label_set_markup_with_mnemonic(GTK_LABEL(label), _("<b>_Password:</b>"));
270 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); 270 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
271 gtk_box_pack_start(GTK_BOX(vbox2), label, FALSE, FALSE, 0); 271 gtk_box_pack_start(GTK_BOX(vbox2), label, FALSE, FALSE, 0);
272 272
273 pass = gtk_entry_new(); 273 pass = gtk_entry_new();
274 gtk_label_set_mnemonic_widget(GTK_LABEL(label), pass); 274 gtk_label_set_mnemonic_widget(GTK_LABEL(label), pass);
281 /* Now for the button box */ 281 /* Now for the button box */
282 hbox = gtk_hbox_new(TRUE, 0); 282 hbox = gtk_hbox_new(TRUE, 0);
283 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, TRUE, 5); 283 gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, TRUE, 5);
284 284
285 /* And now for the buttons */ 285 /* And now for the buttons */
286 button = gaim_pixbuf_button_from_stock(_("Accounts"), GAIM_STOCK_ACCOUNTS, GAIM_BUTTON_VERTICAL); 286 button = gaim_pixbuf_button_from_stock(_("_Accounts"), GAIM_STOCK_ACCOUNTS, GAIM_BUTTON_VERTICAL);
287 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); 287 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE);
288 g_signal_connect(G_OBJECT(button), "clicked", 288 g_signal_connect(G_OBJECT(button), "clicked",
289 G_CALLBACK(gaim_gtk_accounts_window_show), mainwindow); 289 G_CALLBACK(gaim_gtk_accounts_window_show), mainwindow);
290 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); 290 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
291 291
292 button = gaim_pixbuf_button_from_stock(_("Preferences"), GTK_STOCK_PREFERENCES, GAIM_BUTTON_VERTICAL); 292 button = gaim_pixbuf_button_from_stock(_("_Preferences"), GTK_STOCK_PREFERENCES, GAIM_BUTTON_VERTICAL);
293 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); 293 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE);
294 g_signal_connect(G_OBJECT(button), "clicked", 294 g_signal_connect(G_OBJECT(button), "clicked",
295 G_CALLBACK(gaim_gtk_prefs_show), mainwindow); 295 G_CALLBACK(gaim_gtk_prefs_show), mainwindow);
296 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); 296 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);
297 297
298 button = gaim_pixbuf_button_from_stock(_("Sign on"), GAIM_STOCK_SIGN_ON, GAIM_BUTTON_VERTICAL); 298 button = gaim_pixbuf_button_from_stock(_("_Sign on"), GAIM_STOCK_SIGN_ON, GAIM_BUTTON_VERTICAL);
299 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); 299 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE);
300 g_signal_connect(G_OBJECT(button), "clicked", 300 g_signal_connect(G_OBJECT(button), "clicked",
301 G_CALLBACK(dologin), mainwindow); 301 G_CALLBACK(dologin), mainwindow);
302 g_signal_connect(G_OBJECT(button), "button-press-event", G_CALLBACK(domiddleclick), NULL); 302 g_signal_connect(G_OBJECT(button), "button-press-event", G_CALLBACK(domiddleclick), NULL);
303 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); 303 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0);