annotate libpurple/plugins/newline.c @ 22047:62147d5b4512

merge of '1c032cc023d809fb900c6bbf99dcd8619b815131' and '65f3bcd3e7dfafc090e0cdfa3e7fff40d82e3c9c'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Wed, 09 Jan 2008 02:16:11 +0000
parents 3f87c3265740
children cc8903c59d6b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
1 /*
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
2 * Displays messages on a new line, below the nick
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
3 * Copyright (C) 2004 Stu Tomlinson <stu@nosnilmot.com>
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
4 *
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
5 * This program is free software; you can redistribute it and/or
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
6 * modify it under the terms of the GNU General Public License
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
7 * as published by the Free Software Foundation; either version 2
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
8 * of the License, or (at your option) any later version.
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
9 *
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
10 * This program is distributed in the hope that it will be useful,
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
13 * GNU General Public License for more details.
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
14 *
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
16 * along with this program; if not, write to the Free Software
19681
44b4e8bd759b The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents: 17621
diff changeset
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301, USA.
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
18 */
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
19 #include "internal.h"
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
20
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
21 #include <string.h>
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
22
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
23 #include <conversation.h>
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
24 #include <debug.h>
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
25 #include <plugin.h>
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
26 #include <signals.h>
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
27 #include <util.h>
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
28 #include <version.h>
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
29
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
30 static gboolean
15822
32c366eeeb99 sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@gmail.com>
parents: 15373
diff changeset
31 addnewline_msg_cb(PurpleAccount *account, char *sender, char **message,
32c366eeeb99 sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@gmail.com>
parents: 15373
diff changeset
32 PurpleConversation *conv, int *flags, void *data)
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
33 {
21687
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
34 if (((purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_IM) &&
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
35 !purple_prefs_get_bool("/plugins/core/newline/im")) ||
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
36 ((purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_CHAT) &&
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
37 !purple_prefs_get_bool("/plugins/core/newline/chat")))
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
38 return FALSE;
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
39
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
40 if (g_ascii_strncasecmp(*message, "/me ", strlen("/me "))) {
17621
840862547a63 Use <br/> instead of \n for the newline, sadrul thought this might work
Stu Tomlinson <stu@nosnilmot.com>
parents: 16666
diff changeset
41 char *tmp = g_strdup_printf("<br/>%s", *message);
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
42 g_free(*message);
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
43 *message = tmp;
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
44 }
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
45
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
46 return FALSE;
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
47 }
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
48
21687
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
49 static PurplePluginPrefFrame *
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
50 get_plugin_pref_frame(PurplePlugin *plugin) {
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
51 PurplePluginPrefFrame *frame;
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
52 PurplePluginPref *ppref;
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
53
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
54 frame = purple_plugin_pref_frame_new();
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
55
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
56 ppref = purple_plugin_pref_new_with_name_and_label(
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
57 "/plugins/core/newline/im", _("Add new line in IMs"));
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
58 purple_plugin_pref_frame_add(frame, ppref);
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
59
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
60 ppref = purple_plugin_pref_new_with_name_and_label(
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
61 "/plugins/core/newline/chat", _("Add new line in Chats"));
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
62 purple_plugin_pref_frame_add(frame, ppref);
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
63
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
64 return frame;
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
65 }
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
66
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
67
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
68 static gboolean
15822
32c366eeeb99 sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@gmail.com>
parents: 15373
diff changeset
69 plugin_load(PurplePlugin *plugin)
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
70 {
15822
32c366eeeb99 sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@gmail.com>
parents: 15373
diff changeset
71 void *conversation = purple_conversations_get_handle();
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
72
15822
32c366eeeb99 sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@gmail.com>
parents: 15373
diff changeset
73 purple_signal_connect(conversation, "writing-im-msg",
32c366eeeb99 sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@gmail.com>
parents: 15373
diff changeset
74 plugin, PURPLE_CALLBACK(addnewline_msg_cb), NULL);
32c366eeeb99 sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@gmail.com>
parents: 15373
diff changeset
75 purple_signal_connect(conversation, "writing-chat-msg",
32c366eeeb99 sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@gmail.com>
parents: 15373
diff changeset
76 plugin, PURPLE_CALLBACK(addnewline_msg_cb), NULL);
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
77
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
78 return TRUE;
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
79 }
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
80
21687
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
81 static PurplePluginUiInfo prefs_info = {
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
82 get_plugin_pref_frame,
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
83 0, /* page_num (Reserved) */
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
84 NULL, /* frame (Reserved) */
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
85 /* Padding */
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
86 NULL,
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
87 NULL,
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
88 NULL,
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
89 NULL
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
90 };
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
91
15822
32c366eeeb99 sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@gmail.com>
parents: 15373
diff changeset
92 static PurplePluginInfo info =
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
93 {
16073
735d92e685ef Whitespace
Stu Tomlinson <stu@nosnilmot.com>
parents: 15822
diff changeset
94 PURPLE_PLUGIN_MAGIC, /**< magic */
735d92e685ef Whitespace
Stu Tomlinson <stu@nosnilmot.com>
parents: 15822
diff changeset
95 PURPLE_MAJOR_VERSION, /**< major version */
735d92e685ef Whitespace
Stu Tomlinson <stu@nosnilmot.com>
parents: 15822
diff changeset
96 PURPLE_MINOR_VERSION, /**< minor version */
15822
32c366eeeb99 sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@gmail.com>
parents: 15373
diff changeset
97 PURPLE_PLUGIN_STANDARD, /**< type */
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
98 NULL, /**< ui_requirement */
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
99 0, /**< flags */
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
100 NULL, /**< dependencies */
16073
735d92e685ef Whitespace
Stu Tomlinson <stu@nosnilmot.com>
parents: 15822
diff changeset
101 PURPLE_PRIORITY_DEFAULT, /**< priority */
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
102
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
103 "core-plugin_pack-newline", /**< id */
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
104 N_("New Line"), /**< name */
21030
3cc856ca2338 Add a --with-extraversion option to ./configure so packagers can fine tune
Stu Tomlinson <stu@nosnilmot.com>
parents: 19681
diff changeset
105 DISPLAY_VERSION, /**< version */
16073
735d92e685ef Whitespace
Stu Tomlinson <stu@nosnilmot.com>
parents: 15822
diff changeset
106 N_("Prepends a newline to displayed message."), /**< summary */
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
107 N_("Prepends a newline to messages so that the "
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
108 "rest of the message appears below the "
16073
735d92e685ef Whitespace
Stu Tomlinson <stu@nosnilmot.com>
parents: 15822
diff changeset
109 "screen name in the conversation window."), /**< description */
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
110 "Stu Tomlinson <stu@nosnilmot.com>", /**< author */
15822
32c366eeeb99 sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@gmail.com>
parents: 15373
diff changeset
111 PURPLE_WEBSITE, /**< homepage */
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
112
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
113 plugin_load, /**< load */
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
114 NULL, /**< unload */
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
115 NULL, /**< destroy */
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
116
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
117 NULL, /**< ui_info */
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
118 NULL, /**< extra_info */
21687
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
119 &prefs_info, /**< prefs_info */
16666
5205dd2bd035 And the rest of the plugins that are compiling for me by default...
Gary Kramlich <grim@reaperworld.com>
parents: 16073
diff changeset
120 NULL, /**< actions */
5205dd2bd035 And the rest of the plugins that are compiling for me by default...
Gary Kramlich <grim@reaperworld.com>
parents: 16073
diff changeset
121
5205dd2bd035 And the rest of the plugins that are compiling for me by default...
Gary Kramlich <grim@reaperworld.com>
parents: 16073
diff changeset
122 /* padding */
5205dd2bd035 And the rest of the plugins that are compiling for me by default...
Gary Kramlich <grim@reaperworld.com>
parents: 16073
diff changeset
123 NULL,
5205dd2bd035 And the rest of the plugins that are compiling for me by default...
Gary Kramlich <grim@reaperworld.com>
parents: 16073
diff changeset
124 NULL,
5205dd2bd035 And the rest of the plugins that are compiling for me by default...
Gary Kramlich <grim@reaperworld.com>
parents: 16073
diff changeset
125 NULL,
5205dd2bd035 And the rest of the plugins that are compiling for me by default...
Gary Kramlich <grim@reaperworld.com>
parents: 16073
diff changeset
126 NULL
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
127 };
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
128
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
129 static void
15822
32c366eeeb99 sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@gmail.com>
parents: 15373
diff changeset
130 init_plugin(PurplePlugin *plugin) {
21687
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
131 purple_prefs_add_none("/plugins/core/newline");
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
132 purple_prefs_add_bool("/plugins/core/newline/im", TRUE);
3f87c3265740 Add preferences to the newline plugin to allow enabling separately for IMs
Stu Tomlinson <stu@nosnilmot.com>
parents: 21030
diff changeset
133 purple_prefs_add_bool("/plugins/core/newline/chat", TRUE);
15373
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
134 }
5fe8042783c1 Rename gtk/ and libgaim/ to pidgin/ and libpurple/
Sean Egan <seanegan@gmail.com>
parents:
diff changeset
135
15822
32c366eeeb99 sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@gmail.com>
parents: 15373
diff changeset
136 PURPLE_INIT_PLUGIN(lastseen, init_plugin, info)