libpurple/protocols/gg/gg.c

branch
soc.2013.gobjectification.plugins
changeset 37038
8832d14d7d0c
parent 37024
88242596aaf9
child 37063
a84be725efad
equal deleted inserted replaced
37037:c391f5d677e4 37038:8832d14d7d0c
997 PURPLE_ICON_SCALE_DISPLAY | 997 PURPLE_ICON_SCALE_DISPLAY |
998 PURPLE_ICON_SCALE_SEND); 998 PURPLE_ICON_SCALE_SEND);
999 999
1000 option = purple_account_option_string_new(_("GG server"), 1000 option = purple_account_option_string_new(_("GG server"),
1001 "gg_server", ""); 1001 "gg_server", "");
1002 protocol->protocol_options = g_list_append(protocol->protocol_options, 1002 protocol->account_options = g_list_append(protocol->account_options,
1003 option); 1003 option);
1004 ggp_server_option = option; 1004 ggp_server_option = option;
1005 1005
1006 #define ADD_VALUE(list, desc, v) { \ 1006 #define ADD_VALUE(list, desc, v) { \
1007 PurpleKeyValuePair *kvp = g_new0(PurpleKeyValuePair, 1); \ 1007 PurpleKeyValuePair *kvp = g_new0(PurpleKeyValuePair, 1); \
1015 ADD_VALUE(encryption_options, _("Require encryption"), "require_tls"); 1015 ADD_VALUE(encryption_options, _("Require encryption"), "require_tls");
1016 ADD_VALUE(encryption_options, _("Don't use encryption"), "none"); 1016 ADD_VALUE(encryption_options, _("Don't use encryption"), "none");
1017 1017
1018 option = purple_account_option_list_new(_("Connection security"), 1018 option = purple_account_option_list_new(_("Connection security"),
1019 "encryption", encryption_options); 1019 "encryption", encryption_options);
1020 protocol->protocol_options = g_list_append(protocol->protocol_options, 1020 protocol->account_options = g_list_append(protocol->account_options,
1021 option); 1021 option);
1022 1022
1023 ADD_VALUE(protocol_version, _("Default"), "default"); 1023 ADD_VALUE(protocol_version, _("Default"), "default");
1024 ADD_VALUE(protocol_version, "GG 10", "gg10"); 1024 ADD_VALUE(protocol_version, "GG 10", "gg10");
1025 ADD_VALUE(protocol_version, "GG 11", "gg11"); 1025 ADD_VALUE(protocol_version, "GG 11", "gg11");
1026 1026
1027 option = purple_account_option_list_new(_("Protocol version"), 1027 option = purple_account_option_list_new(_("Protocol version"),
1028 "protocol_version", protocol_version); 1028 "protocol_version", protocol_version);
1029 protocol->protocol_options = g_list_append(protocol->protocol_options, 1029 protocol->account_options = g_list_append(protocol->account_options,
1030 option); 1030 option);
1031 1031
1032 option = purple_account_option_bool_new(_("Show links from strangers"), 1032 option = purple_account_option_bool_new(_("Show links from strangers"),
1033 "show_links_from_strangers", 1); 1033 "show_links_from_strangers", 1);
1034 protocol->protocol_options = g_list_append(protocol->protocol_options, 1034 protocol->account_options = g_list_append(protocol->account_options,
1035 option); 1035 option);
1036 } 1036 }
1037 1037
1038 static void 1038 static void
1039 ggp_protocol_class_init(PurpleProtocolClass *klass) 1039 ggp_protocol_class_init(PurpleProtocolClass *klass)

mercurial