| 645 for (l = dialog->prpl_info->protocol_options; l != NULL; l = l->next) { |
645 for (l = dialog->prpl_info->protocol_options; l != NULL; l = l->next) { |
| 646 option = (GaimAccountOption *)l->data; |
646 option = (GaimAccountOption *)l->data; |
| 647 |
647 |
| 648 switch (gaim_account_option_get_type(option)) { |
648 switch (gaim_account_option_get_type(option)) { |
| 649 case GAIM_PREF_BOOLEAN: |
649 case GAIM_PREF_BOOLEAN: |
| 650 if (account == NULL || !strcmp(gaim_account_get_protocol_id(account), dialog->protocol_id)) { |
650 if (account == NULL || strcmp(gaim_account_get_protocol_id(account), dialog->protocol_id)) { |
| 651 bool_value = gaim_account_option_get_default_bool(option); |
651 bool_value = gaim_account_option_get_default_bool(option); |
| 652 } else { |
652 } else { |
| 653 bool_value = gaim_account_get_bool(account, |
653 bool_value = gaim_account_get_bool(account, |
| 654 gaim_account_option_get_setting(option), |
654 gaim_account_option_get_setting(option), |
| 655 gaim_account_option_get_default_bool(option)); |
655 gaim_account_option_get_default_bool(option)); |
| 668 g_list_append(dialog->protocol_opt_entries, check); |
668 g_list_append(dialog->protocol_opt_entries, check); |
| 669 |
669 |
| 670 break; |
670 break; |
| 671 |
671 |
| 672 case GAIM_PREF_INT: |
672 case GAIM_PREF_INT: |
| 673 if (account == NULL || !strcmp(gaim_account_get_protocol_id(account), dialog->protocol_id)) { |
673 if (account == NULL || strcmp(gaim_account_get_protocol_id(account), dialog->protocol_id)) { |
| 674 int_value = gaim_account_option_get_default_int(option); |
674 int_value = gaim_account_option_get_default_int(option); |
| 675 } else { |
675 } else { |
| 676 int_value = gaim_account_get_int(account, |
676 int_value = gaim_account_get_int(account, |
| 677 gaim_account_option_get_setting(option), |
677 gaim_account_option_get_setting(option), |
| 678 gaim_account_option_get_default_int(option)); |
678 gaim_account_option_get_default_int(option)); |
| 694 g_list_append(dialog->protocol_opt_entries, entry); |
694 g_list_append(dialog->protocol_opt_entries, entry); |
| 695 |
695 |
| 696 break; |
696 break; |
| 697 |
697 |
| 698 case GAIM_PREF_STRING: |
698 case GAIM_PREF_STRING: |
| 699 if (account == NULL || !strcmp(gaim_account_get_protocol_id(account), dialog->protocol_id)) { |
699 if (account == NULL || strcmp(gaim_account_get_protocol_id(account), dialog->protocol_id)) { |
| 700 str_value = gaim_account_option_get_default_string(option); |
700 str_value = gaim_account_option_get_default_string(option); |
| 701 } else { |
701 } else { |
| 702 str_value = gaim_account_get_string(account, |
702 str_value = gaim_account_get_string(account, |
| 703 gaim_account_option_get_setting(option), |
703 gaim_account_option_get_setting(option), |
| 704 gaim_account_option_get_default_string(option)); |
704 gaim_account_option_get_default_string(option)); |