Sat, 22 Aug 2020 04:02:53 -0500
Remove purple_chat_user_[sg]et_ui_data.
Remove `purple_chat_user_[gs]et_ui_data`.
Remove `deleting-chat-user` signal. It's unused now, and just a substitute for a finalization notification.
Testing Done:
Compile only.
Reviewed at https://reviews.imfreedom.org/r/83/
| 7543 | 1 | /* |
| 2 | * Release Notification Plugin | |
| 3 | * | |
| 4 | * Copyright (C) 2003, Nathan Walp <faceprint@faceprint.com> | |
| 5 | * | |
| 6 | * This program is free software; you can redistribute it and/or | |
| 7 | * modify it under the terms of the GNU General Public License as | |
| 8 | * published by the Free Software Foundation; either version 2 of the | |
| 9 | * License, or (at your option) any later version. | |
| 10 | * | |
| 11 | * This program is distributed in the hope that it will be useful, but | |
| 12 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 14 | * General Public License for more details. | |
| 15 | * | |
| 16 | * You should have received a copy of the GNU General Public License | |
| 17 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
18169
diff
changeset
|
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
18169
diff
changeset
|
19 | * 02111-1301, USA. |
| 7543 | 20 | */ |
| 21 | ||
|
40439
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40360
diff
changeset
|
22 | #include <glib/gi18n-lib.h> |
| 7543 | 23 | |
|
39992
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
24 | #include <libsoup/soup.h> |
| 7543 | 25 | #include <string.h> |
| 26 | ||
|
40360
e21f3bbcc2a5
Update all of the pidgin code to include purple.h
Gary Kramlich <grim@reaperworld.com>
parents:
40222
diff
changeset
|
27 | #include <purple.h> |
|
e21f3bbcc2a5
Update all of the pidgin code to include purple.h
Gary Kramlich <grim@reaperworld.com>
parents:
40222
diff
changeset
|
28 | |
|
40502
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
40496
diff
changeset
|
29 | #include <pidgin.h> |
| 7543 | 30 | |
|
39992
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
31 | static SoupSession *session = NULL; |
|
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
32 | |
| 7543 | 33 | /* 1 day */ |
| 34 | #define MIN_CHECK_INTERVAL 60 * 60 * 24 | |
| 35 | ||
| 36 | static void | |
|
24768
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
37 | release_hide() |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
38 | { |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
39 | /* No-op. We may use this method in the future to avoid showing |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
40 | * the popup twice */ |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
41 | } |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
42 | |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
43 | static void |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
44 | release_show() |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
45 | { |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
46 | purple_notify_uri(NULL, PURPLE_WEBSITE); |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
47 | } |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
48 | |
|
39992
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
49 | static void |
|
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
50 | version_fetch_cb(G_GNUC_UNUSED SoupSession *session, SoupMessage *msg, |
|
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
51 | gpointer user_data) |
| 7543 | 52 | { |
|
24768
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
53 | gchar *cur_ver; |
|
33441
b69cd2bfe289
Migrate relnot plugin to new HTTP API
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
33424
diff
changeset
|
54 | const char *changelog; |
|
24768
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
55 | GtkWidget *release_dialog; |
|
24247
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
56 | |
| 7543 | 57 | GString *message; |
|
24247
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
58 | int i = 0; |
|
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
59 | |
|
39992
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
60 | if (!SOUP_STATUS_IS_SUCCESSFUL(msg->status_code)) { |
|
24247
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
61 | return; |
|
39992
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
62 | } |
| 7543 | 63 | |
|
39992
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
64 | changelog = msg->response_body->data; |
| 7543 | 65 | |
| 66 | while(changelog[i] && changelog[i] != '\n') i++; | |
| 67 | ||
| 14281 | 68 | /* this basically means the version thing wasn't in the format we were |
| 69 | * looking for so sourceforge is probably having web server issues, and | |
| 70 | * we should try again later */ | |
| 71 | if(i == 0) | |
| 72 | return; | |
| 73 | ||
| 7543 | 74 | cur_ver = g_strndup(changelog, i); |
| 75 | ||
| 76 | message = g_string_new(""); | |
|
24768
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
77 | g_string_append_printf(message, _("You can upgrade to %s %s today."), |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
78 | PIDGIN_NAME, cur_ver); |
| 7543 | 79 | |
|
24768
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
80 | release_dialog = pidgin_make_mini_dialog( |
|
39145
e12cc371a615
Port PidginMiniDialog from deprecated GtkStock name to GtkIconTheme name
Mike Ruprecht <cmaiku@gmail.com>
parents:
38358
diff
changeset
|
81 | NULL, "dialog-information", |
|
24768
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
82 | _("New Version Available"), |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
83 | message->str, |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
84 | NULL, |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
85 | _("Later"), PURPLE_CALLBACK(release_hide), |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
86 | _("Download Now"), PURPLE_CALLBACK(release_show), |
|
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
87 | NULL); |
| 7543 | 88 | |
|
24768
c9d1cfe1d89c
A patch from Casey Ho to move the release notification to a mini-dialog in the buddy list. The change log is no longer displayed, but will open a webbrowser to show it.
Casey Ho <caseyho@pidgin.im>
parents:
24247
diff
changeset
|
89 | pidgin_blist_add_alert(release_dialog); |
| 7543 | 90 | |
| 91 | g_string_free(message, TRUE); | |
| 7599 | 92 | g_free(cur_ver); |
| 7543 | 93 | } |
| 94 | ||
| 95 | static void | |
| 96 | do_check(void) | |
| 97 | { | |
| 15884 | 98 | int last_check = purple_prefs_get_int("/plugins/gtk/relnot/last_check"); |
| 7543 | 99 | if(!last_check || time(NULL) - last_check > MIN_CHECK_INTERVAL) { |
|
39992
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
100 | SoupMessage *msg; |
|
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
101 | |
|
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
102 | purple_debug_info("relnot", "Checking for new version."); |
|
31294
73607ab89c6f
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
24768
diff
changeset
|
103 | |
|
39992
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
104 | msg = soup_form_request_new("GET", "https://pidgin.im/version.php", |
|
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
105 | "version", purple_core_get_version(), |
|
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
106 | "build", |
| 7543 | 107 | #ifdef _WIN32 |
|
39992
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
108 | "purple-win32", |
| 7543 | 109 | #else |
|
39992
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
110 | "purple", |
| 7543 | 111 | #endif |
|
39992
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
112 | NULL); |
|
24247
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
113 | |
|
39992
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
114 | soup_session_queue_message(session, msg, version_fetch_cb, NULL); |
|
24247
9f640ea2ab9f
Parse the HTTP status code in the release notification plugin and only display
Daniel Atallah <datallah@pidgin.im>
parents:
20288
diff
changeset
|
115 | |
| 15884 | 116 | purple_prefs_set_int("/plugins/gtk/relnot/last_check", time(NULL)); |
| 7543 | 117 | } |
| 118 | } | |
| 119 | ||
| 120 | static void | |
| 15884 | 121 | signed_on_cb(PurpleConnection *gc, void *data) { |
| 7543 | 122 | do_check(); |
| 123 | } | |
| 124 | ||
| 125 | /************************************************************************** | |
| 126 | * Plugin stuff | |
| 127 | **************************************************************************/ | |
|
36758
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
128 | static PidginPluginInfo * |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
129 | plugin_query(GError **error) |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
130 | { |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
131 | const gchar * const authors[] = { |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
132 | "Nathan Walp <faceprint@faceprint.com>", |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
133 | NULL |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
134 | }; |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
135 | |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
136 | return pidgin_plugin_info_new( |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
137 | "id", "gtk-relnot", |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
138 | "name", N_("Release Notification"), |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
139 | "version", DISPLAY_VERSION, |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
140 | "category", N_("Notification"), |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
141 | "summary", N_("Checks periodically for new releases."), |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
142 | "description", N_("Checks periodically for new releases and notifies " |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
143 | "the user with the ChangeLog."), |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
144 | "authors", authors, |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
145 | "website", PURPLE_WEBSITE, |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
146 | "abi-version", PURPLE_ABI_VERSION, |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
147 | NULL |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
148 | ); |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
149 | } |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
150 | |
| 7543 | 151 | static gboolean |
|
36758
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
152 | plugin_load(PurplePlugin *plugin, GError **error) |
| 7543 | 153 | { |
|
36758
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
154 | purple_prefs_add_none("/plugins/gtk/relnot"); |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
155 | purple_prefs_add_int("/plugins/gtk/relnot/last_check", 0); |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
156 | |
| 15884 | 157 | purple_signal_connect(purple_connections_get_handle(), "signed-on", |
| 158 | plugin, PURPLE_CALLBACK(signed_on_cb), NULL); | |
| 7543 | 159 | |
|
39992
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
160 | session = soup_session_new(); |
|
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
161 | |
| 7543 | 162 | /* we don't check if we're offline */ |
| 15884 | 163 | if(purple_connections_get_all()) |
| 7543 | 164 | do_check(); |
| 165 | ||
| 166 | return TRUE; | |
| 167 | } | |
| 168 | ||
|
36758
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
169 | static gboolean |
|
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
170 | plugin_unload(PurplePlugin *plugin, GError **error) |
| 7543 | 171 | { |
|
39992
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
172 | soup_session_abort(session); |
|
bffad41e933f
Convert Pidgin plugins to libsoup.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39498
diff
changeset
|
173 | g_clear_object(&session); |
|
36758
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
174 | return TRUE; |
| 7543 | 175 | } |
| 176 | ||
|
36758
deee438dc431
Refactored more pidgin plugins to use the new plugin API
Ankit Vani <a@nevitus.org>
parents:
34878
diff
changeset
|
177 | PURPLE_PLUGIN_INIT(relnot, plugin_query, plugin_load, plugin_unload); |