pidgin/plugins/gtkbuddynote.c

Sun, 20 Oct 2013 15:11:49 +0530

author
Ankit Vani <a@nevitus.org>
date
Sun, 20 Oct 2013 15:11:49 +0530
branch
soc.2013.gobjectification.plugins
changeset 36905
d256e7a2ec4c
parent 36756
1bcc14114857
child 37203
0da690bbe012
permissions
-rw-r--r--

Changed dox files to xml files for gtk-doc, and included them in the top-level XMLs.
The contents of the xml files mostly still need to be refactored.

17681
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
1 /*
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
2 * GtkBuddyNote - Store notes on particular buddies
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
3 * Copyright (C) 2007 Etan Reisner <deryni@pidgin.im>
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
4 *
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
5 * This program is free software; you can redistribute it and/or
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
6 * modify it under the terms of the GNU General Public License
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
7 * as published by the Free Software Foundation; either version 2
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
8 * of the License, or (at your option) any later version.
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
9 *
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
10 * This program is distributed in the hope that it will be useful,
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
13 * GNU General Public License for more details.
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
14 *
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
16 * 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: 18889
diff changeset
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301, USA.
17681
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
18 */
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
19 #include "internal.h"
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
20
34708
dd67596485ca Undo renames of UI blist headers back to gntblist.h and gtkblist.h
Ankit Vani <a@nevitus.org>
parents: 34706
diff changeset
21 #include <gtkblist.h>
17681
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
22 #include <gtkplugin.h>
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
23
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
24 #include <debug.h>
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
25 #include <version.h>
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
26
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
27 static void
34864
0e292d8887de Renamed PurpleBListNode back to PurpleBlistNode
Ankit Vani <a@nevitus.org>
parents: 34708
diff changeset
28 append_to_tooltip(PurpleBlistNode *node, GString *text, gboolean full)
17681
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
29 {
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
30 if (full) {
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
31 const gchar *note = purple_blist_node_get_string(node, "notes");
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
32
18324
7ebbdeaaa30d Make gtkbuddynote load itself if it finds buddynote was loaded and it is
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17681
diff changeset
33 if ((note != NULL) && (*note != '\0')) {
29770
ae8b684d1a59 Escape buddy notes when adding them to the tooltip so notes can't totally
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 20288
diff changeset
34 char *tmp, *esc;
20095
c3c62efefdd0 applied changes from 23c81a483086f0c1541212be4c849abb05f9f3bd
Richard Laager <rlaager@pidgin.im>
parents: 19859
diff changeset
35 purple_markup_html_to_xhtml(note, NULL, &tmp);
29770
ae8b684d1a59 Escape buddy notes when adding them to the tooltip so notes can't totally
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 20288
diff changeset
36 esc = g_markup_escape_text(tmp, -1);
ae8b684d1a59 Escape buddy notes when adding them to the tooltip so notes can't totally
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 20288
diff changeset
37 g_free(tmp);
18324
7ebbdeaaa30d Make gtkbuddynote load itself if it finds buddynote was loaded and it is
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17681
diff changeset
38 g_string_append_printf(text, _("\n<b>Buddy Note</b>: %s"),
29770
ae8b684d1a59 Escape buddy notes when adding them to the tooltip so notes can't totally
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 20288
diff changeset
39 esc);
ae8b684d1a59 Escape buddy notes when adding them to the tooltip so notes can't totally
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 20288
diff changeset
40 g_free(esc);
17681
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
41 }
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
42 }
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
43 }
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
44
36756
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
45 #if 0
17681
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
46 static gboolean
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
47 check_for_buddynote(gpointer data)
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
48 {
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
49 PurplePlugin *buddynote = NULL;
18324
7ebbdeaaa30d Make gtkbuddynote load itself if it finds buddynote was loaded and it is
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17681
diff changeset
50 PurplePlugin *plugin = (PurplePlugin *)data;
17681
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
51
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
52 buddynote = purple_plugins_find_with_id("core-plugin_pack-buddynote");
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
53
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
54 if (buddynote == NULL) {
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
55 buddynote = purple_plugins_find_with_basename("buddynote");
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
56 }
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
57
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
58 if (buddynote != NULL) {
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
59 PurplePluginInfo *bninfo = buddynote->info;
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
60
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
61 bninfo->flags = PURPLE_PLUGIN_FLAG_INVISIBLE;
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
62
18324
7ebbdeaaa30d Make gtkbuddynote load itself if it finds buddynote was loaded and it is
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17681
diff changeset
63
7ebbdeaaa30d Make gtkbuddynote load itself if it finds buddynote was loaded and it is
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17681
diff changeset
64 /* If non-gtk buddy note plugin is loaded, but we are not, then load
7ebbdeaaa30d Make gtkbuddynote load itself if it finds buddynote was loaded and it is
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17681
diff changeset
65 * ourselves, otherwise people upgrading from pre-gtkbuddynote days
7ebbdeaaa30d Make gtkbuddynote load itself if it finds buddynote was loaded and it is
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17681
diff changeset
66 * will not have 'Buddy Notes' showing as loaded in the plugins list.
7ebbdeaaa30d Make gtkbuddynote load itself if it finds buddynote was loaded and it is
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17681
diff changeset
67 * We also trigger a save on the list of plugins because it's not been
7ebbdeaaa30d Make gtkbuddynote load itself if it finds buddynote was loaded and it is
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17681
diff changeset
68 * loaded through the UI. */
7ebbdeaaa30d Make gtkbuddynote load itself if it finds buddynote was loaded and it is
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17681
diff changeset
69 if (purple_plugin_is_loaded(buddynote) &&
7ebbdeaaa30d Make gtkbuddynote load itself if it finds buddynote was loaded and it is
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17681
diff changeset
70 !purple_plugin_is_loaded(plugin)) {
7ebbdeaaa30d Make gtkbuddynote load itself if it finds buddynote was loaded and it is
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17681
diff changeset
71 purple_plugin_load(plugin);
7ebbdeaaa30d Make gtkbuddynote load itself if it finds buddynote was loaded and it is
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17681
diff changeset
72 pidgin_plugins_save();
7ebbdeaaa30d Make gtkbuddynote load itself if it finds buddynote was loaded and it is
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17681
diff changeset
73 }
7ebbdeaaa30d Make gtkbuddynote load itself if it finds buddynote was loaded and it is
Stu Tomlinson <nosnilmot@pidgin.im>
parents: 17681
diff changeset
74
17681
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
75 } else {
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
76 info.flags = PURPLE_PLUGIN_FLAG_INVISIBLE;
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
77 }
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
78
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
79 return FALSE;
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
80 }
36756
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
81 #endif
17681
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
82
36756
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
83 static PidginPluginInfo *
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
84 plugin_query(GError **error)
17681
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
85 {
36756
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
86 const gchar * const authors[] = {
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
87 "Etan Reisner <deryni@pidgin.im>",
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
88 NULL
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
89 };
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
90
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
91 const gchar * const dependencies[] = {
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
92 "core-plugin_pack-buddynote",
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
93 NULL
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
94 };
18889
2eda48021b49 Fix core plugin dependency registering for gtkbuddynote to happen in plugin_init() so that it can work correctly. Add an additional sanity check in the core plugin unloading so that messed up dependency registrations don't cause crashes in the future. Thanks to deryni for helping figure this out.
Daniel Atallah <datallah@pidgin.im>
parents: 18324
diff changeset
95
36756
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
96 return pidgin_plugin_info_new(
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
97 "id", "gtkbuddynote",
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
98 "name", N_("Buddy Note Tooltips"),
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
99 "version", DISPLAY_VERSION,
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
100 "category", N_("User interface"),
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
101 "summary", N_("Shows stored buddy notes on the buddy's tooltip."),
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
102 "description", N_("Shows stored buddy notes on the buddy's tooltip."),
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
103 "authors", authors,
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
104 "website", PURPLE_WEBSITE,
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
105 "abi-version", PURPLE_ABI_VERSION,
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
106 "dependencies", dependencies,
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
107 NULL
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
108 );
17681
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
109 }
b16ce226d996 Fix #318 which asked for the buddynote plugins notes to be shown in the
Etan Reisner <deryni@pidgin.im>
parents:
diff changeset
110
36756
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
111 static gboolean
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
112 plugin_load(PurplePlugin *plugin, GError **error)
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
113 {
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
114 purple_signal_connect(pidgin_blist_get_handle(), "drawing-tooltip",
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
115 plugin, PURPLE_CALLBACK(append_to_tooltip), NULL);
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
116 return TRUE;
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
117 }
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
118
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
119 static gboolean
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
120 plugin_unload(PurplePlugin *plugin, GError **error)
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
121 {
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
122 #if 0
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
123 PurplePlugin *buddynote = NULL;
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
124
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
125 buddynote = purple_plugins_find_with_id("core-plugin_pack-buddynote");
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
126 purple_plugin_unload(buddynote);
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
127 #endif
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
128
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
129 return TRUE;
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
130 }
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
131
1bcc14114857 Refactored gtkbuddynote to use the new plugin API.
Ankit Vani <a@nevitus.org>
parents: 34864
diff changeset
132 PURPLE_PLUGIN_INIT(gtkbuddynote, plugin_query, plugin_load, plugin_unload);

mercurial