Mercurial > pidgin.yaz
comparison pidgin/gtkaccount.c @ 18041:678d78b7fa34
propagate from branch 'im.pidgin.pidgin' (head a58972b72c7aa0fa0899c5a6b96e51cd6c427ab4)
to branch 'im.pidgin.pidgin.2.1.0' (head 03df10bd904eed59317242a557aed2b8430d9630)
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 04 Jun 2007 05:55:13 +0000 |
parents | e3e42a99070e 0d65b1438d99 |
children | 58e28ccf08e6 |
comparison
equal
deleted
inserted
replaced
18040:541a6b0112c6 | 18041:678d78b7fa34 |
---|---|
182 | 182 |
183 label = gtk_label_new_with_mnemonic(text); | 183 label = gtk_label_new_with_mnemonic(text); |
184 gtk_size_group_add_widget(dialog->sg, label); | 184 gtk_size_group_add_widget(dialog->sg, label); |
185 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); | 185 gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); |
186 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); | 186 gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); |
187 gtk_label_set_mnemonic_widget(GTK_LABEL(label), widget); | |
187 gtk_widget_show(label); | 188 gtk_widget_show(label); |
188 | 189 |
189 gtk_box_pack_start(GTK_BOX(hbox), widget, TRUE, TRUE, PIDGIN_HIG_BORDER); | 190 gtk_box_pack_start(GTK_BOX(hbox), widget, TRUE, TRUE, PIDGIN_HIG_BORDER); |
190 gtk_widget_show(widget); | 191 gtk_widget_show(widget); |
191 pidgin_set_accessible_label (widget, label); | 192 pidgin_set_accessible_label (widget, label); |
424 dialog->protocol_menu = pidgin_protocol_option_menu_new( | 425 dialog->protocol_menu = pidgin_protocol_option_menu_new( |
425 dialog->protocol_id, G_CALLBACK(set_account_protocol_cb), dialog); | 426 dialog->protocol_id, G_CALLBACK(set_account_protocol_cb), dialog); |
426 gtk_widget_ref(dialog->protocol_menu); | 427 gtk_widget_ref(dialog->protocol_menu); |
427 } | 428 } |
428 | 429 |
429 hbox = add_pref_box(dialog, vbox, _("Protocol:"), dialog->protocol_menu); | 430 hbox = add_pref_box(dialog, vbox, _("Pro_tocol:"), dialog->protocol_menu); |
430 g_object_set_data(G_OBJECT(dialog->protocol_menu), "container", hbox); | 431 g_object_set_data(G_OBJECT(dialog->protocol_menu), "container", hbox); |
431 | 432 |
432 gtk_widget_unref(dialog->protocol_menu); | 433 gtk_widget_unref(dialog->protocol_menu); |
433 | 434 |
434 /* Screen name */ | 435 /* Screen name */ |
435 dialog->screenname_entry = gtk_entry_new(); | 436 dialog->screenname_entry = gtk_entry_new(); |
436 #if GTK_CHECK_VERSION(2,10,0) | 437 #if GTK_CHECK_VERSION(2,10,0) |
437 g_object_set(G_OBJECT(dialog->screenname_entry), "truncate-multiline", TRUE, NULL); | 438 g_object_set(G_OBJECT(dialog->screenname_entry), "truncate-multiline", TRUE, NULL); |
438 #endif | 439 #endif |
439 | 440 |
440 add_pref_box(dialog, vbox, _("Screen name:"), dialog->screenname_entry); | 441 add_pref_box(dialog, vbox, _("Screen _name:"), dialog->screenname_entry); |
441 | 442 |
442 g_signal_connect(G_OBJECT(dialog->screenname_entry), "changed", | 443 g_signal_connect(G_OBJECT(dialog->screenname_entry), "changed", |
443 G_CALLBACK(screenname_changed_cb), dialog); | 444 G_CALLBACK(screenname_changed_cb), dialog); |
444 | 445 |
445 /* Do the user split thang */ | 446 /* Do the user split thang */ |
521 /* Password */ | 522 /* Password */ |
522 dialog->password_entry = gtk_entry_new(); | 523 dialog->password_entry = gtk_entry_new(); |
523 gtk_entry_set_visibility(GTK_ENTRY(dialog->password_entry), FALSE); | 524 gtk_entry_set_visibility(GTK_ENTRY(dialog->password_entry), FALSE); |
524 if (gtk_entry_get_invisible_char(GTK_ENTRY(dialog->password_entry)) == '*') | 525 if (gtk_entry_get_invisible_char(GTK_ENTRY(dialog->password_entry)) == '*') |
525 gtk_entry_set_invisible_char(GTK_ENTRY(dialog->password_entry), PIDGIN_INVISIBLE_CHAR); | 526 gtk_entry_set_invisible_char(GTK_ENTRY(dialog->password_entry), PIDGIN_INVISIBLE_CHAR); |
526 dialog->password_box = add_pref_box(dialog, vbox, _("Password:"), | 527 dialog->password_box = add_pref_box(dialog, vbox, _("_Password:"), |
527 dialog->password_entry); | 528 dialog->password_entry); |
528 | 529 |
529 /* Alias */ | 530 /* Alias */ |
530 dialog->alias_entry = gtk_entry_new(); | 531 dialog->alias_entry = gtk_entry_new(); |
531 add_pref_box(dialog, vbox, _("Local alias:"), dialog->alias_entry); | 532 add_pref_box(dialog, vbox, _("Local _alias:"), dialog->alias_entry); |
532 | 533 |
533 /* Remember Password */ | 534 /* Remember Password */ |
534 dialog->remember_pass_check = | 535 dialog->remember_pass_check = |
535 gtk_check_button_new_with_label(_("Remember password")); | 536 gtk_check_button_new_with_mnemonic(_("Remember pass_word")); |
536 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dialog->remember_pass_check), | 537 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(dialog->remember_pass_check), |
537 FALSE); | 538 FALSE); |
538 gtk_box_pack_start(GTK_BOX(vbox), dialog->remember_pass_check, | 539 gtk_box_pack_start(GTK_BOX(vbox), dialog->remember_pass_check, |
539 FALSE, FALSE, 0); | 540 FALSE, FALSE, 0); |
540 gtk_widget_show(dialog->remember_pass_check); | 541 gtk_widget_show(dialog->remember_pass_check); |
601 gtk_container_add(GTK_CONTAINER(frame), vbox); | 602 gtk_container_add(GTK_CONTAINER(frame), vbox); |
602 gtk_widget_show(vbox); | 603 gtk_widget_show(vbox); |
603 | 604 |
604 /* New mail notifications */ | 605 /* New mail notifications */ |
605 dialog->new_mail_check = | 606 dialog->new_mail_check = |
606 gtk_check_button_new_with_label(_("New mail notifications")); | 607 gtk_check_button_new_with_mnemonic(_("New _mail notifications")); |
607 gtk_box_pack_start(GTK_BOX(vbox), dialog->new_mail_check, FALSE, FALSE, 0); | 608 gtk_box_pack_start(GTK_BOX(vbox), dialog->new_mail_check, FALSE, FALSE, 0); |
608 gtk_widget_show(dialog->new_mail_check); | 609 gtk_widget_show(dialog->new_mail_check); |
609 | 610 |
610 /* Buddy icon */ | 611 /* Buddy icon */ |
611 dialog->icon_check = gtk_check_button_new_with_label(_("Use this buddy icon for this account:")); | 612 dialog->icon_check = gtk_check_button_new_with_mnemonic(_("Use this buddy _icon for this account:")); |
612 g_signal_connect(G_OBJECT(dialog->icon_check), "toggled", G_CALLBACK(icon_check_cb), dialog); | 613 g_signal_connect(G_OBJECT(dialog->icon_check), "toggled", G_CALLBACK(icon_check_cb), dialog); |
613 gtk_widget_show(dialog->icon_check); | 614 gtk_widget_show(dialog->icon_check); |
614 gtk_box_pack_start(GTK_BOX(vbox), dialog->icon_check, FALSE, FALSE, 0); | 615 gtk_box_pack_start(GTK_BOX(vbox), dialog->icon_check, FALSE, FALSE, 0); |
615 | 616 |
616 dialog->icon_hbox = hbox = gtk_hbox_new(FALSE, PIDGIN_HIG_BOX_SPACE); | 617 dialog->icon_hbox = hbox = gtk_hbox_new(FALSE, PIDGIN_HIG_BOX_SPACE); |
1025 GtkWidget *vbox2; | 1026 GtkWidget *vbox2; |
1026 | 1027 |
1027 if (dialog->proxy_frame != NULL) | 1028 if (dialog->proxy_frame != NULL) |
1028 gtk_widget_destroy(dialog->proxy_frame); | 1029 gtk_widget_destroy(dialog->proxy_frame); |
1029 | 1030 |
1030 frame = pidgin_make_frame(parent, _("Proxy Options")); | 1031 frame = pidgin_make_frame(parent, _("Pro_xy Options")); |
1031 dialog->proxy_frame = gtk_widget_get_parent(gtk_widget_get_parent(frame)); | 1032 dialog->proxy_frame = gtk_widget_get_parent(gtk_widget_get_parent(frame)); |
1032 | 1033 |
1033 gtk_box_reorder_child(GTK_BOX(parent), dialog->proxy_frame, 1); | 1034 gtk_box_reorder_child(GTK_BOX(parent), dialog->proxy_frame, 1); |
1034 gtk_widget_show(dialog->proxy_frame); | 1035 gtk_widget_show(dialog->proxy_frame); |
1035 | 1036 |