Mercurial > pidgin
comparison libpurple/protocols/qq/qq.c @ 24115:bcfc98c7a55f
merge of '546bf87105ac5b97c3962c083dfab015d37d9b05'
and 'e21702f98a100a93853bc53855b25488f2f9dbf7'
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Mon, 15 Sep 2008 03:06:03 +0000 |
parents | 69c218fd5d54 225e0e9e1055 |
children | d57928c9dd8f 4d752d07a126 16734635febf |
comparison
equal
deleted
inserted
replaced
23881:69c218fd5d54 | 24115:bcfc98c7a55f |
---|---|
714 { | 714 { |
715 g_return_val_if_fail(who != NULL, NULL); | 715 g_return_val_if_fail(who != NULL, NULL); |
716 return chat_name_to_purple_name(who); | 716 return chat_name_to_purple_name(who); |
717 } | 717 } |
718 | 718 |
719 PurplePlugin *my_protocol = NULL; | 719 static PurplePluginProtocolInfo prpl_info = |
720 static PurplePluginProtocolInfo prpl_info = { | 720 { |
721 OPT_PROTO_CHAT_TOPIC | OPT_PROTO_USE_POINTSIZE, | 721 OPT_PROTO_CHAT_TOPIC | OPT_PROTO_USE_POINTSIZE, |
722 NULL, /* user_splits */ | 722 NULL, /* user_splits */ |
723 NULL, /* protocol_options */ | 723 NULL, /* protocol_options */ |
724 {"png", 96, 96, 96, 96, 0, PURPLE_ICON_SCALE_SEND}, /* icon_spec */ | 724 {"png", 96, 96, 96, 96, 0, PURPLE_ICON_SCALE_SEND}, /* icon_spec */ |
725 _qq_list_icon, /* list_icon */ | 725 _qq_list_icon, /* list_icon */ |
778 NULL, /* new xfer */ | 778 NULL, /* new xfer */ |
779 NULL, /* offline_message */ | 779 NULL, /* offline_message */ |
780 NULL, /* PurpleWhiteboardPrplOps */ | 780 NULL, /* PurpleWhiteboardPrplOps */ |
781 NULL, /* send_raw */ | 781 NULL, /* send_raw */ |
782 NULL, /* roomlist_room_serialize */ | 782 NULL, /* roomlist_room_serialize */ |
783 | 783 NULL, /* unregister_user */ |
784 /* padding */ | 784 NULL, /* send_attention */ |
785 NULL, | 785 NULL, /* get attention_types */ |
786 NULL, | 786 |
787 NULL, | 787 sizeof(PurplePluginProtocolInfo), /* struct_size */ |
788 NULL | 788 NULL |
789 }; | 789 }; |
790 | 790 |
791 static PurplePluginInfo info = { | 791 static PurplePluginInfo info = { |
792 PURPLE_PLUGIN_MAGIC, | 792 PURPLE_PLUGIN_MAGIC, |
871 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); | 871 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
872 | 872 |
873 option = purple_account_option_int_new(_("Update interval(s)"), "update_interval", 300); | 873 option = purple_account_option_int_new(_("Update interval(s)"), "update_interval", 300); |
874 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); | 874 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, option); |
875 | 875 |
876 my_protocol = plugin; | |
877 | |
878 purple_prefs_add_none("/plugins/prpl/qq"); | 876 purple_prefs_add_none("/plugins/prpl/qq"); |
879 purple_prefs_add_bool("/plugins/prpl/qq/show_status_by_icon", TRUE); | 877 purple_prefs_add_bool("/plugins/prpl/qq/show_status_by_icon", TRUE); |
880 purple_prefs_add_bool("/plugins/prpl/qq/show_fake_video", FALSE); | 878 purple_prefs_add_bool("/plugins/prpl/qq/show_fake_video", FALSE); |
881 purple_prefs_add_bool("/plugins/prpl/qq/show_room_when_newin", TRUE); | 879 purple_prefs_add_bool("/plugins/prpl/qq/show_room_when_newin", TRUE); |
882 purple_prefs_add_int("/plugins/prpl/qq/resend_interval", 3); | 880 purple_prefs_add_int("/plugins/prpl/qq/resend_interval", 3); |