annotate plugins/extplacement.c @ 9225:554ef91db2dd

[gaim-migrate @ 10021] Another fix, like the previous time, and some #if 0'd debug info. The MSN servers are doing something they're not supposed to do, it seems. We're investigating. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 06 Jun 2004 20:45:53 +0000
parents 6e9e9e7b8e1e
children 45d2ad4ac1c1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9179
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
1 /*
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
2 * Extra conversation placement options for Gaim
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
3 *
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
4 * Gaim is the legal property of its developers, whose names are too numerous
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
5 * to list here. Please refer to the COPYRIGHT file distributed with this
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
6 * source distribution.
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
7 *
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
8 * This program is free software; you can redistribute it and/or
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
9 * modify it under the terms of the GNU General Public License
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
10 * as published by the Free Software Foundation; either version 2
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
11 * of the License, or (at your option) any later version.
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
12 *
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
13 * This program is distributed in the hope that it will be useful,
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
16 * GNU General Public License for more details.
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
17 *
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
18 * You should have received a copy of the GNU General Public License
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
19 * along with this program; if not, write to the Free Software
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
21 */
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
22
9157
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
23 #include "internal.h"
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
24 #include "conversation.h"
9215
6b96a5a13e68 [gaim-migrate @ 10011]
Nathan Walp <nwalp@pidgin.im>
parents: 9179
diff changeset
25 #include "gtkplugin.h"
9157
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
26
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
27 static void
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
28 conv_placement_last_created_win_split(GaimConversation *conv)
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
29 {
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
30 GaimConvWindow *win;
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
31
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
32 win = gaim_get_last_window_with_type(gaim_conversation_get_type(conv));
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
33
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
34 if (win == NULL) {
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
35 win = gaim_conv_window_new();
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
36
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
37 gaim_conv_window_add_conversation(win, conv);
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
38 gaim_conv_window_show(win);
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
39 }
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
40 else
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
41 gaim_conv_window_add_conversation(win, conv);
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
42 }
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
43
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
44 static void
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
45 conv_placement_by_number(GaimConversation *conv)
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
46 {
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
47 GaimConvWindow *win = NULL;
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
48
9179
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
49 win = gaim_get_last_window_with_type(gaim_conversation_get_type(conv));
9157
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
50
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
51 if (win == NULL) {
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
52 win = gaim_conv_window_new();
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
53
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
54 gaim_conv_window_add_conversation(win, conv);
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
55 gaim_conv_window_show(win);
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
56 } else {
9179
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
57 int max_count = gaim_prefs_get_int("/plugins/gtk/extplacement/placement_number");
9157
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
58 int count = gaim_conv_window_get_conversation_count(win);
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
59
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
60 if (count < max_count)
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
61 gaim_conv_window_add_conversation(win, conv);
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
62 else {
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
63 GList *l = NULL;
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
64
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
65 for (l = gaim_get_windows(); l != NULL; l = l->next) {
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
66 win = (GaimConvWindow *)l->data;
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
67
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
68 count = gaim_conv_window_get_conversation_count(win);
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
69 if (count < max_count) {
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
70 gaim_conv_window_add_conversation(win, conv);
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
71 return;
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
72 }
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
73 }
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
74 win = gaim_conv_window_new();
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
75
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
76 gaim_conv_window_add_conversation(win, conv);
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
77 gaim_conv_window_show(win);
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
78 }
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
79 }
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
80 }
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
81
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
82 static gboolean
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
83 plugin_load(GaimPlugin *plugin)
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
84 {
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
85 gaim_conv_placement_add_fnc("im_chat", _("Separate IM and Chat windows"),
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
86 &conv_placement_last_created_win_split);
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
87 gaim_conv_placement_add_fnc("number", _("By conversation count"),
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
88 &conv_placement_by_number);
9179
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
89 gaim_prefs_trigger_callback("/gaim/gtk/conversations/placement");
9157
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
90 return TRUE;
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
91 }
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
92
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
93 static gboolean
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
94 plugin_unload(GaimPlugin *plugin)
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
95 {
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
96 gaim_conv_placement_remove_fnc("im_chat");
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
97 gaim_conv_placement_remove_fnc("number");
9179
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
98 gaim_prefs_trigger_callback("/gaim/gtk/conversations/placement");
9157
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
99 return TRUE;
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
100 }
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
101
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
102 static GaimPluginPrefFrame *
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
103 get_plugin_pref_frame(GaimPlugin *plugin) {
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
104 GaimPluginPrefFrame *frame;
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
105 GaimPluginPref *ppref;
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
106
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
107 frame = gaim_plugin_pref_frame_new();
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
108
9217
6e9e9e7b8e1e [gaim-migrate @ 10013]
Luke Schierer <lschiere@pidgin.im>
parents: 9215
diff changeset
109 ppref = gaim_plugin_pref_new_with_label(_("Conversation Placement"));
9157
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
110 gaim_plugin_pref_frame_add(frame, ppref);
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
111
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
112 ppref = gaim_plugin_pref_new_with_name_and_label(
9179
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
113 "/plugins/gtk/extplacement/placement_number",
9217
6e9e9e7b8e1e [gaim-migrate @ 10013]
Luke Schierer <lschiere@pidgin.im>
parents: 9215
diff changeset
114 _("Number of conversations per window"));
9157
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
115 gaim_plugin_pref_set_bounds(ppref, 1, 50);
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
116 gaim_plugin_pref_frame_add(frame, ppref);
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
117
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
118 return frame;
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
119 }
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
120
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
121 static GaimPluginUiInfo prefs_info = {
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
122 get_plugin_pref_frame
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
123 };
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
124
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
125 static GaimPluginInfo info =
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
126 {
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
127 GAIM_PLUGIN_API_VERSION, /**< api_version */
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
128 GAIM_PLUGIN_STANDARD, /**< type */
9179
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
129 GAIM_GTK_PLUGIN_TYPE, /**< ui_requirement */
9157
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
130 0, /**< flags */
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
131 NULL, /**< dependencies */
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
132 GAIM_PRIORITY_DEFAULT, /**< priority */
9179
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
133 "gtk-extplacement", /**< id */
9157
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
134 N_("ExtPlacement"), /**< name */
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
135 VERSION, /**< version */
9179
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
136 N_("Extra conversation placement options."), /**< summary */
9157
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
137 /** description */
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
138 N_("Either restrict the number of conversations per windows"
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
139 " or use separate windows for IMs and Chats"),
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
140 "Stu Tomlinson <stu@nosnilmot.com>", /**< author */
9179
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
141 GAIM_WEBSITE, /**< homepage */
9157
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
142 plugin_load, /**< load */
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
143 plugin_unload, /**< unload */
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
144 NULL, /**< destroy */
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
145 NULL, /**< ui_info */
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
146 NULL, /**< extra_info */
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
147 &prefs_info, /**< prefs_info */
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
148 NULL /**< actions */
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
149 };
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
150
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
151 static void
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
152 init_plugin(GaimPlugin *plugin)
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
153 {
9179
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
154 gaim_prefs_add_none("/plugins/gtk/extplacement");
fb09ed68fbd2 [gaim-migrate @ 9974]
Luke Schierer <lschiere@pidgin.im>
parents: 9157
diff changeset
155 gaim_prefs_add_int("/plugins/gtk/extplacement/placement_number", 4);
9157
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
156 }
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
157
bd1ea0a717d7 [gaim-migrate @ 9941]
Luke Schierer <lschiere@pidgin.im>
parents:
diff changeset
158 GAIM_INIT_PLUGIN(extplacement, init_plugin, info)