Mercurial > pidgin
comparison pidgin/gtkaccount.c @ 32705:ef4ffed09e49
Replace Facebook's UI hack for default connection security.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 29 Dec 2011 01:58:43 +0000 |
parents | b43b8b93ea28 |
children |
comparison
equal
deleted
inserted
replaced
32704:b43b8b93ea28 | 32705:ef4ffed09e49 |
---|---|
753 static void | 753 static void |
754 add_protocol_options(AccountPrefsDialog *dialog) | 754 add_protocol_options(AccountPrefsDialog *dialog) |
755 { | 755 { |
756 PurpleAccountOption *option; | 756 PurpleAccountOption *option; |
757 PurpleAccount *account; | 757 PurpleAccount *account; |
758 GtkWidget *vbox, *check, *entry, *combo, *menu, *item; | 758 GtkWidget *vbox, *check, *entry, *combo; |
759 GList *list, *node; | 759 GList *list, *node; |
760 gint i, idx, int_value; | 760 gint i, idx, int_value; |
761 GtkListStore *model; | 761 GtkListStore *model; |
762 GtkTreeIter iter; | 762 GtkTreeIter iter; |
763 GtkCellRenderer *renderer; | 763 GtkCellRenderer *renderer; |
791 dialog->protocol_frame = vbox = gtk_vbox_new(FALSE, PIDGIN_HIG_BOX_SPACE); | 791 dialog->protocol_frame = vbox = gtk_vbox_new(FALSE, PIDGIN_HIG_BOX_SPACE); |
792 gtk_container_set_border_width(GTK_CONTAINER(vbox), PIDGIN_HIG_BORDER); | 792 gtk_container_set_border_width(GTK_CONTAINER(vbox), PIDGIN_HIG_BORDER); |
793 gtk_notebook_insert_page(GTK_NOTEBOOK(dialog->notebook), vbox, | 793 gtk_notebook_insert_page(GTK_NOTEBOOK(dialog->notebook), vbox, |
794 gtk_label_new_with_mnemonic(_("Ad_vanced")), 1); | 794 gtk_label_new_with_mnemonic(_("Ad_vanced")), 1); |
795 gtk_widget_show(vbox); | 795 gtk_widget_show(vbox); |
796 | |
797 /* FIXME: Facebook forced-options hack */ | |
798 #if 0 | |
799 menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(dialog->protocol_menu)); | |
800 item = gtk_menu_get_active(GTK_MENU(menu)); | |
801 #endif | |
802 | 796 |
803 for (l = dialog->prpl_info->protocol_options; l != NULL; l = l->next) | 797 for (l = dialog->prpl_info->protocol_options; l != NULL; l = l->next) |
804 { | 798 { |
805 option = (PurpleAccountOption *)l->data; | 799 option = (PurpleAccountOption *)l->data; |
806 | 800 |
911 } | 905 } |
912 | 906 |
913 list = purple_account_option_get_list(option); | 907 list = purple_account_option_get_list(option); |
914 model = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_POINTER); | 908 model = gtk_list_store_new(2, G_TYPE_STRING, G_TYPE_POINTER); |
915 opt_entry->widget = combo = gtk_combo_box_new_with_model(GTK_TREE_MODEL(model)); | 909 opt_entry->widget = combo = gtk_combo_box_new_with_model(GTK_TREE_MODEL(model)); |
916 | |
917 /* FIXME: Facebook forced-options hack */ | |
918 #if 0 | |
919 if (g_object_get_data(G_OBJECT(item), "fakefacebook") && | |
920 !strcmp(opt_entry->setting, "connection_security")) | |
921 str_value = "opportunistic_tls"; | |
922 #endif | |
923 | 910 |
924 /* Loop through list of PurpleKeyValuePair items */ | 911 /* Loop through list of PurpleKeyValuePair items */ |
925 for (node = list; node != NULL; node = node->next) { | 912 for (node = list; node != NULL; node = node->next) { |
926 if (node->data != NULL) { | 913 if (node->data != NULL) { |
927 kvp = (PurpleKeyValuePair *) node->data; | 914 kvp = (PurpleKeyValuePair *) node->data; |