Mercurial > pidgin
annotate plugins/perl/common/module.h @ 11217:f854402837ba
[gaim-migrate @ 13349]
The history plugin really should require logging be on. Otherwise, you can end up seeing a really old conversation instead of the "last" conversation. I've made this change.
Now, the history plugin can't be silently failing to do its job if logging is disabled. I've coded it to display a warning dialog under the following conditions:
1) The user enables the history plugin and neither IM nor chat logging is enabled.
2) The user starts Gaim with the history plugin and no logging enabled.
3) The user disables logging while the history plugin is enabled.
I thought about automatically disabling the history plugin after displaying the dialog, but I imagine (hope?) people will enable the history plugin, see the dialog, and enable logging. If this is what happens, they would be confused if the history plugin automatically disabled itself when it displayed the dialog.
This should address RFE 1241878, "History plugin should have a more helpful description".
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 09 Aug 2005 05:20:07 +0000 |
parents | 0e9e2b923d09 |
children | 519dc2186438 |
rev | line source |
---|---|
11118 | 1 |
2 | |
6508 | 3 typedef struct group *Gaim__Group; |
4 | |
5 #define group perl_group | |
6 | |
6816
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6699
diff
changeset
|
7 #include <glib.h> |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6699
diff
changeset
|
8 #ifdef _WIN32 |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6699
diff
changeset
|
9 #undef pipe |
5aeba37b303c
[gaim-migrate @ 7356]
Herman Bloggs <hermanator12002@yahoo.com>
parents:
6699
diff
changeset
|
10 #endif |
6508 | 11 #include <EXTERN.h> |
12 #include <perl.h> | |
13 #include <XSUB.h> | |
14 | |
15 #undef group | |
16 | |
17 #include "../perl-common.h" | |
18 | |
19 #include "account.h" | |
11118 | 20 #include "accountopt.h" |
21 #include "blist.h" | |
22 #include "buddyicon.h" | |
23 #include "cipher.h" | |
24 #include "cmds.h" | |
6508 | 25 #include "connection.h" |
6591
d25ae4b5a204
[gaim-migrate @ 7115]
Christian Hammond <chipx86@chipx86.com>
parents:
6588
diff
changeset
|
26 #include "conversation.h" |
6508 | 27 #include "debug.h" |
11118 | 28 #include "desktopitem.h" |
29 #include "eventloop.h" | |
30 #include "ft.h" | |
31 #include "gtkaccount.h" | |
32 #include "gtkblist.h" | |
33 #include "gtkconn.h" | |
34 #include "gtkconv.h" | |
35 #include "gtkutils.h" | |
36 #include "imgstore.h" | |
37 #include "network.h" | |
38 #include "notify.h" | |
39 #include "plugin.h" | |
40 #include "pluginpref.h" | |
41 #include "pounce.h" | |
42 #include "prefs.h" | |
43 #include "privacy.h" | |
44 #include "prpl.h" | |
45 #include "proxy.h" | |
46 #include "request.h" | |
47 #include "roomlist.h" | |
48 #include "savedstatuses.h" | |
6523
d7e04709be96
[gaim-migrate @ 7040]
Christian Hammond <chipx86@chipx86.com>
parents:
6520
diff
changeset
|
49 #include "server.h" |
11118 | 50 #include "signals.h" |
51 #include "sound.h" | |
52 #include "sslconn.h" | |
53 #include "status.h" | |
54 #include "stringref.h" | |
55 #include "util.h" | |
56 #include "value.h" | |
57 #include "xmlnode.h" | |
58 | |
59 /* account.h */ | |
60 typedef GaimAccount * Gaim__Account; | |
61 typedef GaimAccountOption * Gaim__Account__Option; | |
62 typedef GaimAccountUiOps * Gaim__Account__UiOps; | |
63 typedef GaimAccountUserSplit * Gaim__Account__UserSplit; | |
64 | |
65 /* blist.h */ | |
66 typedef GaimBlistNode * Gaim__BuddyList__Node; | |
67 typedef GaimBlistNodeAction * Gaim__BuddyList__Node__Action; | |
68 typedef GaimBlistUiOps * Gaim__BuddyList__UiOps; | |
69 typedef GaimBlistNodeFlags Gaim__BlistNodeFlags; | |
70 typedef GaimBuddyList * Gaim__BuddyList; | |
71 typedef GaimBuddy * Gaim__BuddyList__Buddy; | |
72 typedef GaimChat * Gaim__BuddyList__Chat; | |
73 typedef GaimContact * Gaim__BuddyList__Contact; | |
74 typedef GaimGroup * Gaim__BuddyList__Group; | |
75 | |
76 /* buddyicon.h */ | |
77 typedef GaimBuddyIcon * Gaim__Buddy__Icon; | |
78 | |
79 /* cipher.h */ | |
80 typedef GaimCipherCaps Gaim__CipherCaps; | |
81 typedef GaimCipher * Gaim__Cipher; | |
82 typedef GaimCipherOps * Gaim__Cipher__Ops; | |
83 typedef GaimCipherContext * Gaim__Cipher__Context; | |
84 | |
85 /* cmds.h */ | |
11130 | 86 typedef GaimCmdId Gaim__CmdId; |
11118 | 87 |
88 /* connection.h */ | |
89 typedef GaimConnectionFlags Gaim__ConnectionFlags; | |
90 typedef GaimConnectionState Gaim__ConnectionState; | |
91 typedef GaimConnection * Gaim__Connection; | |
92 typedef GaimConnectionUiOps * Gaim__Connection__UiOps; | |
93 | |
94 /* converstaion.h */ | |
95 typedef GaimConversationType Gaim__ConversationType; | |
96 typedef GaimUnseenState Gaim__UnseenState; | |
97 typedef GaimConvUpdateType Gaim__ConvUpdateType; | |
98 typedef GaimTypingState Gaim__TypingState; | |
99 typedef GaimMessageFlags Gaim__MessageFlags; | |
100 typedef GaimConvChatBuddyFlags Gaim__ConvChatBuddyFlags; | |
101 typedef GaimConvWindowUiOps * Gaim__ConvWindow__UiOps; | |
102 typedef GaimConvWindow * Gaim__ConvWindow; | |
103 typedef GaimConversationUiOps * Gaim__Conversation__UiOps; | |
104 typedef GaimConversation * Gaim__Conversation; | |
105 typedef GaimConvIm * Gaim__Conversation__IM; | |
106 typedef GaimConvChat * Gaim__Conversation__Chat; | |
107 typedef GaimConvChatBuddy * Gaim__Conversation__ChatBuddy; | |
108 | |
109 /* debug.h */ | |
110 typedef GaimDebugLevel Gaim__DebugLevel; | |
111 | |
112 /* desktopitem.h */ | |
113 typedef GaimDesktopItem * Gaim__DesktopItem; | |
114 typedef GaimDesktopItemType Gaim__DesktopItemType; | |
115 | |
116 /* eventloop.h */ | |
117 typedef GaimInputCondition * Gaim__InputCondition; | |
118 typedef GaimEventLoopUiOps * Gaim__EventLoopUiOps; | |
119 | |
120 /* ft.h */ | |
121 typedef GaimXfer * Gaim__Xfer; | |
122 typedef GaimXferType Gaim__XferType; | |
123 typedef GaimXferStatusType Gaim__XferStatusType; | |
124 typedef GaimXferUiOps * Gaim__XferUiOps; | |
125 | |
126 /* gtkblish.h */ | |
127 typedef GaimGtkBuddyList * Gaim__GTK__BuddyList; | |
128 typedef GaimStatusIconSize Gaim__StatusIconSize; | |
129 | |
130 | |
131 /* gtkutils.h */ | |
132 typedef GaimButtonOrientation Gaim__ButtonOrientation; | |
133 typedef GaimButtonStyle Gaim__ButtonStyle; | |
11139
2b6009535e30
[gaim-migrate @ 13203]
Richard Laager <rlaager@wiktel.com>
parents:
11130
diff
changeset
|
134 #ifndef _WIN32 |
11118 | 135 typedef GaimBrowserPlace Gaim__BrowserPlace; |
11139
2b6009535e30
[gaim-migrate @ 13203]
Richard Laager <rlaager@wiktel.com>
parents:
11130
diff
changeset
|
136 #endif /* _WIN32 */ |
6508 | 137 |
11118 | 138 /* gtkconv.h */ |
139 typedef GdkPixbuf * Gaim__GDK__Pixbuf; | |
140 typedef GtkWidget * Gaim__GTK__Widget; | |
141 typedef GaimGtkConversation * Gaim__GTK__Conversation; | |
142 | |
143 /* gtkutils.h */ | |
144 typedef GtkSelectionData * Gaim__GTK__SelectionData; | |
145 typedef GtkFileSelection * Gaim__GTK__FileSelection; | |
146 typedef GtkTextView * Gaim__GTK__TextView; | |
147 | |
148 /* gtkconn.h */ | |
149 | |
150 /* imgstore.h */ | |
151 typedef GaimStoredImage * Gaim__StoredImage; | |
152 | |
153 /* log.h */ | |
154 typedef GaimLog * Gaim__Log; | |
155 typedef GaimLogLogger * Gaim__Log__Logger; | |
156 typedef GaimLogCommonLoggerData * Gaim__LogCommonLoggerData; | |
157 typedef GaimLogSet * Gaim__LogSet; | |
158 typedef GaimLogType Gaim__LogType; | |
159 typedef GaimLogReadFlags * Gaim__Log__ReadFlags; | |
160 | |
161 /* notify.h */ | |
162 typedef GaimNotifyType Gaim__NotifyType; | |
163 typedef GaimNotifyMsgType Gaim__NotifyMsgType; | |
164 typedef GaimNotifyUiOps * Gaim__NotifyUiOps; | |
165 | |
166 /* plugin.h */ | |
167 typedef GaimPlugin * Gaim__Plugin; | |
168 typedef GaimPluginType Gaim__PluginType; | |
169 typedef GaimPluginInfo * Gaim__PluginInfo; | |
170 typedef GaimPluginUiInfo * Gaim__PluginUiInfo; | |
171 typedef GaimPluginLoaderInfo * Gaim__PluginLoaderInfo; | |
11170 | 172 typedef GaimPluginAction * Gaim__Plugin__Action; |
11118 | 173 |
174 /* pluginpref.h */ | |
175 typedef GaimPluginPrefFrame * Gaim__PluginPrefFrame; | |
176 typedef GaimPluginPref * Gaim__PluginPref; | |
177 typedef GaimPluginPrefType Gaim__PluginPrefType; | |
178 | |
179 /* pounce.h */ | |
180 typedef GaimPounce * Gaim__Pounce; | |
181 typedef GaimPounceEvent Gaim__PounceEvent; | |
182 | |
183 | |
184 /* prefs.h */ | |
185 typedef GaimPrefType Gaim__PrefType; | |
186 | |
187 /* privacy.h */ | |
188 typedef GaimPrivacyType Gaim__PrivacyType; | |
189 typedef GaimPrivacyUiOps * Gaim__Privacy__UiOps; | |
190 | |
191 /* proxy.h */ | |
192 typedef GaimProxyType Gaim__ProxyType; | |
193 typedef GaimProxyInfo * Gaim__ProxyInfo; | |
194 | |
6588
7f5f57dd5cac
[gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents:
6531
diff
changeset
|
195 |
11118 | 196 /* prpl.h */ |
197 typedef GaimBuddyIconSpec * Gaim__Buddy__Icon__Spec; | |
198 typedef GaimPluginProtocolInfo * Gaim__PluginProtocolInfo; | |
199 typedef GaimConvImFlags Gaim__ConvImFlags; | |
200 typedef GaimConvChatFlags Gaim__ConvChatFlags; | |
201 typedef GaimIconScaleRules Gaim__IconScaleRules; | |
202 typedef GaimProtocolOptions Gaim__ProtocolOptions; | |
203 | |
204 /* request.h */ | |
205 typedef GaimRequestType Gaim__RequestType; | |
206 typedef GaimRequestFieldType Gaim__RequestFieldType; | |
207 typedef GaimRequestFields * Gaim__Request__Fields; | |
208 typedef GaimRequestFieldGroup * Gaim__Request__Field__Group; | |
209 typedef GaimRequestField * Gaim__Request__Field; | |
210 typedef GaimRequestUiOps * Gaim__Request__UiOps; | |
211 | |
212 /* roomlist.h */ | |
213 | |
214 typedef GaimRoomlist * Gaim__Roomlist; | |
215 typedef GaimRoomlistRoom * Gaim__Roomlist__Room; | |
216 typedef GaimRoomlistField * Gaim__Roomlist__Field; | |
217 typedef GaimRoomlistUiOps * Gaim__Roomlist__UiOps; | |
218 typedef GaimRoomlistRoomType Gaim__RoomlistRoomType; | |
219 typedef GaimRoomlistFieldType Gaim__RoomlistFieldType; | |
220 | |
221 /* savedstatuses.h */ | |
222 typedef GaimSavedStatus * Gaim__SavedStatus; | |
223 typedef GaimSavedStatusSub * Gaim__SavedStatusSub; | |
224 | |
225 /* sound.h */ | |
226 typedef GaimSoundEventID Gaim__SoundEventID; | |
227 typedef GaimSoundUiOps * Gaim__Sound__UiOps; | |
228 | |
229 /* sslconn.h */ | |
230 typedef GaimSslConnection * Gaim__Ssl__Connection; | |
231 typedef GaimInputCondition * Gaim__Input__Condition; | |
232 typedef GaimSslErrorType Gaim__SslErrorType; | |
233 typedef GaimSslOps * Gaim__Ssl__Ops; | |
234 | |
235 /* status.h */ | |
236 typedef GaimStatusType * Gaim__StatusType; | |
237 typedef GaimStatusAttr * Gaim__StatusAttr; | |
238 typedef GaimPresence * Gaim__Presence; | |
239 typedef GaimStatus * Gaim__Status; | |
240 typedef GaimPresenceContext Gaim__PresenceContext; | |
241 typedef GaimStatusPrimitive Gaim__StatusPrimitive; | |
242 | |
243 typedef GaimStringref * Gaim__Stringref; | |
244 | |
245 /* value.h */ | |
246 typedef GaimValue * Gaim__Value; | |
247 | |
248 /* xmlnode.h */ | |
249 typedef XMLNodeType XMLNode__Type; | |
250 | |
251 | |
252 /* other.h */ | |
253 |