libpurple/protocols/gg/gg.c

changeset 35305
056b8468d470
parent 35265
77664079d0f0
child 35354
aa1f0e988567
child 37024
88242596aaf9
equal deleted inserted replaced
35300:6f0178580d5d 35305:056b8468d470
42 #include "chat.h" 42 #include "chat.h"
43 #include "search.h" 43 #include "search.h"
44 #include "blist.h" 44 #include "blist.h"
45 #include "utils.h" 45 #include "utils.h"
46 #include "resolver-purple.h" 46 #include "resolver-purple.h"
47 #include "account.h"
48 #include "deprecated.h" 47 #include "deprecated.h"
49 #include "purplew.h" 48 #include "purplew.h"
50 #include "libgadu-events.h" 49 #include "libgadu-events.h"
51 #include "multilogon.h" 50 #include "multilogon.h"
52 #include "status.h" 51 #include "status.h"
894 static void ggp_action_multilogon(PurplePluginAction *action) 893 static void ggp_action_multilogon(PurplePluginAction *action)
895 { 894 {
896 ggp_multilogon_dialog((PurpleConnection *)action->context); 895 ggp_multilogon_dialog((PurpleConnection *)action->context);
897 } 896 }
898 897
899 static void ggp_action_chpass(PurplePluginAction *action)
900 {
901 ggp_account_chpass((PurpleConnection *)action->context);
902 }
903
904 static void ggp_action_status_broadcasting(PurplePluginAction *action) 898 static void ggp_action_status_broadcasting(PurplePluginAction *action)
905 { 899 {
906 ggp_status_broadcasting_dialog((PurpleConnection *)action->context); 900 ggp_status_broadcasting_dialog((PurpleConnection *)action->context);
907 } 901 }
908 902
918 912
919 static GList *ggp_actions(PurplePlugin *plugin, gpointer context) 913 static GList *ggp_actions(PurplePlugin *plugin, gpointer context)
920 { 914 {
921 GList *m = NULL; 915 GList *m = NULL;
922 PurplePluginAction *act; 916 PurplePluginAction *act;
923
924 act = purple_plugin_action_new(_("Change password..."),
925 ggp_action_chpass);
926 m = g_list_append(m, act);
927 917
928 act = purple_plugin_action_new(_("Show other sessions"), 918 act = purple_plugin_action_new(_("Show other sessions"),
929 ggp_action_multilogon); 919 ggp_action_multilogon);
930 m = g_list_append(m, act); 920 m = g_list_append(m, act);
931 921
989 } 979 }
990 980
991 static PurplePluginProtocolInfo prpl_info = 981 static PurplePluginProtocolInfo prpl_info =
992 { 982 {
993 sizeof(PurplePluginProtocolInfo), /* struct_size */ 983 sizeof(PurplePluginProtocolInfo), /* struct_size */
994 OPT_PROTO_REGISTER_NOSCREENNAME | OPT_PROTO_IM_IMAGE, 984 OPT_PROTO_IM_IMAGE,
995 NULL, /* user_splits */ 985 NULL, /* user_splits */
996 NULL, /* protocol_options */ 986 NULL, /* protocol_options */
997 {"png", 1, 1, 200, 200, 0, PURPLE_ICON_SCALE_DISPLAY | PURPLE_ICON_SCALE_SEND}, /* icon_spec */ 987 {"png", 1, 1, 200, 200, 0, PURPLE_ICON_SCALE_DISPLAY | PURPLE_ICON_SCALE_SEND}, /* icon_spec */
998 ggp_list_icon, /* list_icon */ 988 ggp_list_icon, /* list_icon */
999 ggp_list_emblem, /* list_emblem */ 989 ggp_list_emblem, /* list_emblem */
1035 ggp_chat_send, /* chat_send */ 1025 ggp_chat_send, /* chat_send */
1036 #else 1026 #else
1037 NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1027 NULL, NULL, NULL, NULL, NULL, NULL, NULL,
1038 #endif 1028 #endif
1039 ggp_keepalive, /* keepalive */ 1029 ggp_keepalive, /* keepalive */
1040 ggp_account_register, /* register_user */ 1030 NULL, /* register_user */
1041 NULL, /* get_cb_info */ 1031 NULL, /* get_cb_info */
1042 ggp_roster_alias_buddy, /* alias_buddy */ 1032 ggp_roster_alias_buddy, /* alias_buddy */
1043 ggp_roster_group_buddy, /* group_buddy */ 1033 ggp_roster_group_buddy, /* group_buddy */
1044 ggp_roster_rename_group, /* rename_group */ 1034 ggp_roster_rename_group, /* rename_group */
1045 ggp_buddy_free, /* buddy_free */ 1035 ggp_buddy_free, /* buddy_free */

mercurial