Mercurial > pidgin.yaz
annotate libpurple/protocols/oscar/visibility.c @ 31086:1558900f47e5
Merged my changes that fix #11964 and #12593. Mark looked over them
and said they looked good to him.
applied changes from 7b998c02b684a694f1089bee715e4a3952bbcf08
through 563c6a79e1266b750fe4bd608890195cfbcd8a2c
author | ivan.komarov@soc.pidgin.im |
---|---|
date | Sat, 30 Oct 2010 21:53:38 +0000 |
parents | 0accc8adb18a |
children | 1ade51ed363c |
rev | line source |
---|---|
30805
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
1 /* |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
2 * Purple's oscar protocol plugin |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
3 * This file is the legal property of its developers. |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
4 * Please see the AUTHORS file distributed alongside this file. |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
5 * |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
6 * This library is free software; you can redistribute it and/or |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
7 * modify it under the terms of the GNU Lesser General Public |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
8 * License as published by the Free Software Foundation; either |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
9 * version 2 of the License, or (at your option) any later version. |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
10 * |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
11 * This library is distributed in the hope that it will be useful, |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
14 * Lesser General Public License for more details. |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
15 * |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
16 * You should have received a copy of the GNU Lesser General Public |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
17 * License along with this library; if not, write to the Free Software |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
31012
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
19 */ |
30805
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
20 |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
21 #include "visibility.h" |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
22 |
30808
ab7e28b1b478
Gettextized the code and rephrased some of the messages slightly.
ivan.komarov@soc.pidgin.im
parents:
30807
diff
changeset
|
23 /* 4 separate strings are needed in order to ease translators' job */ |
ab7e28b1b478
Gettextized the code and rephrased some of the messages slightly.
ivan.komarov@soc.pidgin.im
parents:
30807
diff
changeset
|
24 #define APPEAR_ONLINE N_("Appear Online") |
ab7e28b1b478
Gettextized the code and rephrased some of the messages slightly.
ivan.komarov@soc.pidgin.im
parents:
30807
diff
changeset
|
25 #define DONT_APPEAR_ONLINE N_("Don't Appear Online") |
ab7e28b1b478
Gettextized the code and rephrased some of the messages slightly.
ivan.komarov@soc.pidgin.im
parents:
30807
diff
changeset
|
26 #define APPEAR_OFFLINE N_("Appear Offline") |
ab7e28b1b478
Gettextized the code and rephrased some of the messages slightly.
ivan.komarov@soc.pidgin.im
parents:
30807
diff
changeset
|
27 #define DONT_APPEAR_OFFLINE N_("Don't Appear Offline") |
ab7e28b1b478
Gettextized the code and rephrased some of the messages slightly.
ivan.komarov@soc.pidgin.im
parents:
30807
diff
changeset
|
28 |
30807
48fe4720d795
Removed callback data that was causing a segfault in Finch, because
ivan.komarov@soc.pidgin.im
parents:
30806
diff
changeset
|
29 static guint16 |
30813
2d4dd38c5db5
Two small fixes Mark suggested:
ivan.komarov@soc.pidgin.im
parents:
30811
diff
changeset
|
30 get_buddy_list_type(OscarData *od) |
30805
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
31 { |
30807
48fe4720d795
Removed callback data that was causing a segfault in Finch, because
ivan.komarov@soc.pidgin.im
parents:
30806
diff
changeset
|
32 PurpleAccount *account = purple_connection_get_account(od->gc); |
48fe4720d795
Removed callback data that was causing a segfault in Finch, because
ivan.komarov@soc.pidgin.im
parents:
30806
diff
changeset
|
33 return purple_account_is_status_active(account, OSCAR_STATUS_ID_INVISIBLE) ? AIM_SSI_TYPE_PERMIT : AIM_SSI_TYPE_DENY; |
48fe4720d795
Removed callback data that was causing a segfault in Finch, because
ivan.komarov@soc.pidgin.im
parents:
30806
diff
changeset
|
34 } |
48fe4720d795
Removed callback data that was causing a segfault in Finch, because
ivan.komarov@soc.pidgin.im
parents:
30806
diff
changeset
|
35 |
48fe4720d795
Removed callback data that was causing a segfault in Finch, because
ivan.komarov@soc.pidgin.im
parents:
30806
diff
changeset
|
36 static gboolean |
48fe4720d795
Removed callback data that was causing a segfault in Finch, because
ivan.komarov@soc.pidgin.im
parents:
30806
diff
changeset
|
37 is_buddy_on_list(OscarData *od, const char *bname) |
48fe4720d795
Removed callback data that was causing a segfault in Finch, because
ivan.komarov@soc.pidgin.im
parents:
30806
diff
changeset
|
38 { |
30813
2d4dd38c5db5
Two small fixes Mark suggested:
ivan.komarov@soc.pidgin.im
parents:
30811
diff
changeset
|
39 return aim_ssi_itemlist_finditem(od->ssi.local, NULL, bname, get_buddy_list_type(od)) != NULL; |
30807
48fe4720d795
Removed callback data that was causing a segfault in Finch, because
ivan.komarov@soc.pidgin.im
parents:
30806
diff
changeset
|
40 } |
30805
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
41 |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
42 static void |
30807
48fe4720d795
Removed callback data that was causing a segfault in Finch, because
ivan.komarov@soc.pidgin.im
parents:
30806
diff
changeset
|
43 visibility_cb(PurpleBlistNode *node, gpointer whatever) |
30805
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
44 { |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
45 PurpleBuddy *buddy = PURPLE_BUDDY(node); |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
46 const char* bname = purple_buddy_get_name(buddy); |
30807
48fe4720d795
Removed callback data that was causing a segfault in Finch, because
ivan.komarov@soc.pidgin.im
parents:
30806
diff
changeset
|
47 OscarData *od = purple_connection_get_protocol_data(purple_account_get_connection(purple_buddy_get_account(buddy))); |
30813
2d4dd38c5db5
Two small fixes Mark suggested:
ivan.komarov@soc.pidgin.im
parents:
30811
diff
changeset
|
48 guint16 list_type = get_buddy_list_type(od); |
30805
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
49 |
30807
48fe4720d795
Removed callback data that was causing a segfault in Finch, because
ivan.komarov@soc.pidgin.im
parents:
30806
diff
changeset
|
50 if (!is_buddy_on_list(od, bname)) { |
48fe4720d795
Removed callback data that was causing a segfault in Finch, because
ivan.komarov@soc.pidgin.im
parents:
30806
diff
changeset
|
51 aim_ssi_add_to_private_list(od, bname, list_type); |
30805
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
52 } else { |
30807
48fe4720d795
Removed callback data that was causing a segfault in Finch, because
ivan.komarov@soc.pidgin.im
parents:
30806
diff
changeset
|
53 aim_ssi_del_from_private_list(od, bname, list_type); |
30805
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
54 } |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
55 } |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
56 |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
57 PurpleMenuAction * |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
58 create_visibility_menu_item(OscarData *od, const char *bname) |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
59 { |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
60 PurpleAccount *account = purple_connection_get_account(od->gc); |
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
61 gboolean invisible = purple_account_is_status_active(account, OSCAR_STATUS_ID_INVISIBLE); |
30807
48fe4720d795
Removed callback data that was causing a segfault in Finch, because
ivan.komarov@soc.pidgin.im
parents:
30806
diff
changeset
|
62 gboolean on_list = is_buddy_on_list(od, bname); |
30808
ab7e28b1b478
Gettextized the code and rephrased some of the messages slightly.
ivan.komarov@soc.pidgin.im
parents:
30807
diff
changeset
|
63 const gchar *label; |
30805
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
64 |
30808
ab7e28b1b478
Gettextized the code and rephrased some of the messages slightly.
ivan.komarov@soc.pidgin.im
parents:
30807
diff
changeset
|
65 if (invisible) { |
ab7e28b1b478
Gettextized the code and rephrased some of the messages slightly.
ivan.komarov@soc.pidgin.im
parents:
30807
diff
changeset
|
66 label = on_list ? _(DONT_APPEAR_ONLINE) : _(APPEAR_ONLINE); |
ab7e28b1b478
Gettextized the code and rephrased some of the messages slightly.
ivan.komarov@soc.pidgin.im
parents:
30807
diff
changeset
|
67 } else { |
ab7e28b1b478
Gettextized the code and rephrased some of the messages slightly.
ivan.komarov@soc.pidgin.im
parents:
30807
diff
changeset
|
68 label = on_list ? _(DONT_APPEAR_OFFLINE) : _(APPEAR_OFFLINE); |
ab7e28b1b478
Gettextized the code and rephrased some of the messages slightly.
ivan.komarov@soc.pidgin.im
parents:
30807
diff
changeset
|
69 } |
ab7e28b1b478
Gettextized the code and rephrased some of the messages slightly.
ivan.komarov@soc.pidgin.im
parents:
30807
diff
changeset
|
70 return purple_menu_action_new(label, PURPLE_CALLBACK(visibility_cb), NULL, NULL); |
30805
5bfef3338383
Added a way to add a user to the (In)Visible list via the context menu.
ivan.komarov@soc.pidgin.im
parents:
diff
changeset
|
71 } |
30806
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
72 |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
73 static void |
31012
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
74 show_private_list(PurplePluginAction *action, guint16 list_type, const gchar *title, const gchar *list_description, const gchar *menu_action_name) |
30806
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
75 { |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
76 PurpleConnection *gc = (PurpleConnection *) action->context; |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
77 OscarData *od = purple_connection_get_protocol_data(gc); |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
78 PurpleAccount *account = purple_connection_get_account(gc); |
31012
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
79 GSList *buddies, *filtered_buddies, *cur; |
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
80 gchar *text, *secondary; |
30806
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
81 |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
82 buddies = purple_find_buddies(account, NULL); |
31012
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
83 filtered_buddies = NULL; |
30806
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
84 for (cur = buddies; cur != NULL; cur = cur->next) { |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
85 PurpleBuddy *buddy; |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
86 const gchar *bname; |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
87 |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
88 buddy = cur->data; |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
89 bname = purple_buddy_get_name(buddy); |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
90 if (aim_ssi_itemlist_finditem(od->ssi.local, NULL, bname, list_type)) { |
31012
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
91 filtered_buddies = g_slist_prepend(filtered_buddies, buddy); |
30806
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
92 } |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
93 } |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
94 |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
95 g_slist_free(buddies); |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
96 |
31012
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
97 filtered_buddies = g_slist_reverse(filtered_buddies); |
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
98 text = oscar_format_buddies(filtered_buddies, _("you have no buddies on this list")); |
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
99 g_slist_free(filtered_buddies); |
30806
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
100 |
31012
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
101 secondary = g_strdup_printf(_("You can add a buddy to this list " |
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
102 "by right-clicking on them and " |
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
103 "selecting \"%s\""), menu_action_name); |
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
104 purple_notify_formatted(gc, title, list_description, secondary, text, NULL, NULL); |
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
105 g_free(secondary); |
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
106 g_free(text); |
30806
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
107 } |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
108 |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
109 void |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
110 oscar_show_visible_list(PurplePluginAction *action) |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
111 { |
31012
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
112 show_private_list(action, AIM_SSI_TYPE_PERMIT, _("Visible List"), |
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
113 _("These buddies will see " |
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
114 "your status when you switch " |
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
115 "to \"Invisible\""), |
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
116 _(APPEAR_ONLINE)); |
30806
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
117 } |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
118 |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
119 void |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
120 oscar_show_invisible_list(PurplePluginAction *action) |
4e804413b12b
Added a way to view the Visible/Invisible lists.
ivan.komarov@soc.pidgin.im
parents:
30805
diff
changeset
|
121 { |
31012
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
122 show_private_list(action, AIM_SSI_TYPE_DENY, _("Invisible List"), |
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
123 _("These buddies will always see you as offline"), |
7b761c8601f7
disapproval of revision 'eca3adf7cdd9217fcf670611fb705385fcfaa48d'
ivan.komarov@soc.pidgin.im
parents:
30812
diff
changeset
|
124 _(APPEAR_OFFLINE)); |
30812
242bcf6b1258
Applied and slightly modified Sadrul's patch (http://pidgin.im/~sadrul/pp/icq-list.patch.txt)
ivan.komarov@soc.pidgin.im
parents:
30811
diff
changeset
|
125 } |