Tue, 29 Aug 2006 02:22:08 +0000
[gaim-migrate @ 17076]
SF Patch #1547720 from Hilbert
Fixes SF Bug #1541097
If you search, leave the Find dialog open, switch tabs, and search again, the search happens in the original tab. This patch fixes that bug. Now when you search, it searches in the active conversation window.
committer: Richard Laager <rlaager@pidgin.im>
| 11118 | 1 | |
| 2 | ||
| 6508 | 3 | typedef struct group *Gaim__Group; |
| 4 | ||
| 5 | #define group perl_group | |
| 6 | ||
|
6816
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6699
diff
changeset
|
7 | #include <glib.h> |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6699
diff
changeset
|
8 | #ifdef _WIN32 |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.com>
parents:
6699
diff
changeset
|
9 | #undef pipe |
|
b14a3043ed09
[gaim-migrate @ 7356]
Herman Bloggs <herman@bluedigits.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
cc1ab32edcdc
[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
20c459e452ac
[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" | |
|
11318
13fa1d5134f3
[gaim-migrate @ 13521]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
11170
diff
changeset
|
55 | /* Ewww. perl has it's own util.h which is in the include path :( */ |
|
14377
c0440e16bacd
[gaim-migrate @ 17008]
Daniel Atallah <datallah@pidgin.im>
parents:
14329
diff
changeset
|
56 | #include "libgaim/util.h" |
| 11118 | 57 | #include "value.h" |
| 58 | #include "xmlnode.h" | |
| 59 | ||
| 12808 | 60 | /* account.h */ |
| 61 | typedef GaimAccount * Gaim__Account; | |
| 62 | typedef GaimAccountOption * Gaim__Account__Option; | |
| 63 | typedef GaimAccountUiOps * Gaim__Account__UiOps; | |
| 64 | typedef GaimAccountUserSplit * Gaim__Account__UserSplit; | |
| 11118 | 65 | |
| 12808 | 66 | /* blist.h */ |
| 67 | typedef GaimBlistNode * Gaim__BuddyList__Node; | |
| 12866 | 68 | typedef GaimBlistNodeFlags Gaim__BuddyList__NodeFlags; |
| 12808 | 69 | typedef GaimBlistUiOps * Gaim__BuddyList__UiOps; |
| 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; | |
| 11118 | 75 | |
| 12808 | 76 | /* buddyicon.h */ |
| 77 | typedef GaimBuddyIcon * Gaim__Buddy__Icon; | |
| 11118 | 78 | |
| 12808 | 79 | /* cipher.h */ |
| 80 | typedef GaimCipher * Gaim__Cipher; | |
| 11118 | 81 | typedef GaimCipherCaps Gaim__CipherCaps; |
| 12808 | 82 | typedef GaimCipherContext * Gaim__Cipher__Context; |
| 11118 | 83 | typedef GaimCipherOps * Gaim__Cipher__Ops; |
| 84 | ||
| 12808 | 85 | /* cmds.h */ |
| 12882 | 86 | typedef GaimCmdFlag Gaim__Cmd__Flag; |
| 87 | typedef GaimCmdId Gaim__Cmd__Id; | |
| 88 | typedef GaimCmdPriority Gaim__Cmd__Priority; | |
| 89 | typedef GaimCmdRet Gaim__Cmd__Ret; | |
| 11118 | 90 | |
| 12808 | 91 | /* connection.h */ |
| 92 | typedef GaimConnection * Gaim__Connection; | |
| 11118 | 93 | typedef GaimConnectionFlags Gaim__ConnectionFlags; |
| 94 | typedef GaimConnectionState Gaim__ConnectionState; | |
| 12808 | 95 | typedef GaimConnectionUiOps * Gaim__Connection__UiOps; |
| 11118 | 96 | |
| 12808 | 97 | /* conversation.h */ |
| 98 | typedef GaimConversationType Gaim__ConversationType; | |
| 99 | typedef GaimUnseenState Gaim__UnseenState; | |
| 11118 | 100 | typedef GaimConvUpdateType Gaim__ConvUpdateType; |
| 101 | typedef GaimTypingState Gaim__TypingState; | |
| 12808 | 102 | typedef GaimMessageFlags Gaim__MessageFlags; |
| 103 | typedef GaimConvChatBuddyFlags Gaim__ConvChatBuddyFlags; | |
| 104 | typedef GaimConversation * Gaim__Conversation; | |
| 105 | typedef GaimConversationUiOps * Gaim__Conversation__UiOps; | |
| 106 | typedef GaimConvIm * Gaim__Conversation__IM; | |
| 107 | typedef GaimConvChat * Gaim__Conversation__Chat; | |
| 108 | typedef GaimConvChatBuddy * Gaim__Conversation__ChatBuddy; | |
| 11118 | 109 | |
| 12808 | 110 | /* debug.h */ |
| 111 | typedef GaimDebugLevel Gaim__DebugLevel; | |
| 11118 | 112 | |
| 12808 | 113 | /* desktopitem.h */ |
| 114 | typedef GaimDesktopItem * Gaim__DesktopItem; | |
| 115 | typedef GaimDesktopItemType Gaim__DesktopItemType; | |
| 11118 | 116 | |
| 12808 | 117 | /* eventloop.h */ |
| 118 | typedef GaimInputCondition * Gaim__InputCondition; | |
| 119 | typedef GaimEventLoopUiOps * Gaim__EventLoopUiOps; | |
| 11118 | 120 | |
| 12808 | 121 | /* ft.h */ |
| 122 | typedef GaimXfer * Gaim__Xfer; | |
| 123 | typedef GaimXferType Gaim__XferType; | |
| 124 | typedef GaimXferStatusType Gaim__XferStatusType; | |
| 125 | typedef GaimXferUiOps * Gaim__XferUiOps; | |
| 11118 | 126 | |
| 12808 | 127 | /* gtkblish.h */ |
| 11118 | 128 | typedef GaimGtkBuddyList * Gaim__GTK__BuddyList; |
| 12808 | 129 | typedef GaimStatusIconSize Gaim__StatusIconSize; |
| 11118 | 130 | |
| 12808 | 131 | /* gtkutils.h */ |
| 11118 | 132 | typedef GaimButtonOrientation Gaim__ButtonOrientation; |
| 133 | typedef GaimButtonStyle Gaim__ButtonStyle; | |
| 11139 | 134 | #ifndef _WIN32 |
| 11118 | 135 | typedef GaimBrowserPlace Gaim__BrowserPlace; |
| 11139 | 136 | #endif /* _WIN32 */ |
| 6508 | 137 | |
| 12808 | 138 | /* gtkconv.h */ |
| 139 | typedef GaimGtkConversation * Gaim__GTK__Conversation; | |
| 11118 | 140 | typedef GdkPixbuf * Gaim__GDK__Pixbuf; |
| 141 | typedef GtkWidget * Gaim__GTK__Widget; | |
| 142 | ||
| 12808 | 143 | /* gtkutils.h */ |
| 11118 | 144 | typedef GtkFileSelection * Gaim__GTK__FileSelection; |
| 12808 | 145 | typedef GtkSelectionData * Gaim__GTK__SelectionData; |
| 11118 | 146 | typedef GtkTextView * Gaim__GTK__TextView; |
| 147 | ||
| 12808 | 148 | /* gtkconn.h */ |
| 11118 | 149 | |
| 12808 | 150 | /* imgstore.h */ |
| 151 | typedef GaimStoredImage * Gaim__StoredImage; | |
| 11118 | 152 | |
| 12808 | 153 | /* log.h */ |
| 154 | typedef GaimLog * Gaim__Log; | |
| 155 | typedef GaimLogCommonLoggerData * Gaim__LogCommonLoggerData; | |
| 156 | typedef GaimLogLogger * Gaim__Log__Logger; | |
| 157 | typedef GaimLogReadFlags * Gaim__Log__ReadFlags; | |
| 158 | typedef GaimLogSet * Gaim__LogSet; | |
| 159 | typedef GaimLogType Gaim__LogType; | |
| 11118 | 160 | |
|
12910
e6c3213c28ec
[gaim-migrate @ 15263]
Daniel Atallah <datallah@pidgin.im>
parents:
12882
diff
changeset
|
161 | /* network.h */ |
|
14329
05c3cc0c1f79
[gaim-migrate @ 16949]
Mark Doliner <markdoliner@pidgin.im>
parents:
14254
diff
changeset
|
162 | typedef GaimNetworkListenData Gaim__NetworkListenData; |
|
12910
e6c3213c28ec
[gaim-migrate @ 15263]
Daniel Atallah <datallah@pidgin.im>
parents:
12882
diff
changeset
|
163 | typedef GaimNetworkListenCallback Gaim__NetworkListenCallback; |
|
e6c3213c28ec
[gaim-migrate @ 15263]
Daniel Atallah <datallah@pidgin.im>
parents:
12882
diff
changeset
|
164 | |
| 12808 | 165 | /* notify.h */ |
|
12242
e7fc1748eb56
[gaim-migrate @ 14544]
Richard Laager <rlaager@pidgin.im>
parents:
12216
diff
changeset
|
166 | typedef GaimNotifyCloseCallback Gaim__NotifyCloseCallback; |
| 12808 | 167 | typedef GaimNotifyMsgType Gaim__NotifyMsgType; |
|
11533
f58436975d44
[gaim-migrate @ 13782]
Richard Laager <rlaager@pidgin.im>
parents:
11318
diff
changeset
|
168 | typedef GaimNotifySearchButtonType Gaim__NotifySearchButtonType; |
|
f58436975d44
[gaim-migrate @ 13782]
Richard Laager <rlaager@pidgin.im>
parents:
11318
diff
changeset
|
169 | typedef GaimNotifySearchResults * Gaim__NotifySearchResults; |
|
f58436975d44
[gaim-migrate @ 13782]
Richard Laager <rlaager@pidgin.im>
parents:
11318
diff
changeset
|
170 | typedef GaimNotifySearchColumn * Gaim__NotifySearchColumn; |
|
f58436975d44
[gaim-migrate @ 13782]
Richard Laager <rlaager@pidgin.im>
parents:
11318
diff
changeset
|
171 | typedef GaimNotifySearchButton * Gaim__NotifySearchButton; |
| 12808 | 172 | typedef GaimNotifyType Gaim__NotifyType; |
| 11118 | 173 | typedef GaimNotifyUiOps * Gaim__NotifyUiOps; |
| 174 | ||
| 12808 | 175 | /* plugin.h */ |
| 176 | typedef GaimPlugin * Gaim__Plugin; | |
| 177 | typedef GaimPluginAction * Gaim__Plugin__Action; | |
| 178 | typedef GaimPluginInfo * Gaim__PluginInfo; | |
| 179 | typedef GaimPluginLoaderInfo * Gaim__PluginLoaderInfo; | |
| 11118 | 180 | typedef GaimPluginType Gaim__PluginType; |
| 12808 | 181 | typedef GaimPluginUiInfo * Gaim__PluginUiInfo; |
| 11118 | 182 | |
| 12808 | 183 | /* pluginpref.h */ |
| 184 | typedef GaimPluginPref * Gaim__PluginPref; | |
| 185 | typedef GaimPluginPrefFrame * Gaim__PluginPref__Frame; | |
| 186 | typedef GaimPluginPrefType Gaim__PluginPrefType; | |
| 11118 | 187 | |
| 12808 | 188 | /* pounce.h */ |
| 189 | typedef GaimPounce * Gaim__Pounce; | |
| 190 | typedef GaimPounceEvent Gaim__PounceEvent; | |
| 11118 | 191 | |
| 12808 | 192 | /* prefs.h */ |
| 193 | typedef GaimPrefType Gaim__PrefType; | |
| 11118 | 194 | |
| 12808 | 195 | /* privacy.h */ |
| 196 | typedef GaimPrivacyType Gaim__PrivacyType; | |
| 197 | typedef GaimPrivacyUiOps * Gaim__Privacy__UiOps; | |
| 11118 | 198 | |
| 12808 | 199 | /* proxy.h */ |
| 200 | typedef GaimProxyInfo * Gaim__ProxyInfo; | |
| 201 | typedef GaimProxyType Gaim__ProxyType; | |
|
6588
187c6026c574
[gaim-migrate @ 7110]
Christian Hammond <chipx86@chipx86.com>
parents:
6531
diff
changeset
|
202 | |
| 12808 | 203 | /* prpl.h */ |
| 204 | typedef GaimBuddyIconSpec * Gaim__Buddy__Icon__Spec; | |
| 205 | typedef GaimIconScaleRules Gaim__IconScaleRules; | |
| 206 | typedef GaimPluginProtocolInfo * Gaim__PluginProtocolInfo; | |
| 207 | typedef GaimProtocolOptions Gaim__ProtocolOptions; | |
| 11118 | 208 | |
| 12808 | 209 | /* request.h */ |
| 210 | typedef GaimRequestField * Gaim__Request__Field; | |
| 11118 | 211 | typedef GaimRequestFields * Gaim__Request__Fields; |
| 212 | typedef GaimRequestFieldGroup * Gaim__Request__Field__Group; | |
| 12808 | 213 | typedef GaimRequestFieldType Gaim__RequestFieldType; |
| 214 | typedef GaimRequestType Gaim__RequestType; | |
| 11118 | 215 | typedef GaimRequestUiOps * Gaim__Request__UiOps; |
| 216 | ||
| 12808 | 217 | /* roomlist.h */ |
| 218 | typedef GaimRoomlist * Gaim__Roomlist; | |
| 219 | typedef GaimRoomlistField * Gaim__Roomlist__Field; | |
| 220 | typedef GaimRoomlistFieldType Gaim__RoomlistFieldType; | |
| 221 | typedef GaimRoomlistRoom * Gaim__Roomlist__Room; | |
| 222 | typedef GaimRoomlistRoomType Gaim__RoomlistRoomType; | |
| 223 | typedef GaimRoomlistUiOps * Gaim__Roomlist__UiOps; | |
| 11118 | 224 | |
| 12808 | 225 | /* savedstatuses.h */ |
| 226 | typedef GaimSavedStatus * Gaim__SavedStatus; | |
| 227 | typedef GaimSavedStatusSub * Gaim__SavedStatusSub; | |
| 11118 | 228 | |
| 12808 | 229 | /* sound.h */ |
| 230 | typedef GaimSoundEventID Gaim__SoundEventID; | |
| 231 | typedef GaimSoundUiOps * Gaim__Sound__UiOps; | |
| 11118 | 232 | |
| 12808 | 233 | /* sslconn.h */ |
| 234 | typedef GaimInputCondition * Gaim__Input__Condition; | |
| 235 | typedef GaimSslConnection * Gaim__Ssl__Connection; | |
| 236 | typedef GaimSslErrorType Gaim__SslErrorType; | |
| 11118 | 237 | typedef GaimSslOps * Gaim__Ssl__Ops; |
| 238 | ||
| 12808 | 239 | /* status.h */ |
| 240 | typedef GaimPresence * Gaim__Presence; | |
| 241 | typedef GaimPresenceContext Gaim__PresenceContext; | |
| 242 | typedef GaimStatus * Gaim__Status; | |
| 243 | typedef GaimStatusAttr * Gaim__StatusAttr; | |
| 244 | typedef GaimStatusPrimitive Gaim__StatusPrimitive; | |
| 245 | typedef GaimStatusType * Gaim__StatusType; | |
| 11118 | 246 | |
| 13018 | 247 | /* stringref.h */ |
| 11118 | 248 | typedef GaimStringref * Gaim__Stringref; |
| 249 | ||
| 12919 | 250 | /* util.h */ |
|
14426
8d4f164c4979
[gaim-migrate @ 17070]
Daniel Atallah <datallah@pidgin.im>
parents:
14417
diff
changeset
|
251 | typedef GaimInfoFieldFormatCallback Gaim__Util__InfoFieldFormatCallback; |
|
14417
5b0b76a8dee4
[gaim-migrate @ 17061]
Mark Doliner <markdoliner@pidgin.im>
parents:
14377
diff
changeset
|
252 | typedef GaimUtilFetchUrlData Gaim__Util__FetchUrlData; |
| 12919 | 253 | typedef GaimMenuAction * Gaim__Menu__Action; |
| 254 | ||
| 12808 | 255 | /* value.h */ |
| 11118 | 256 | typedef GaimValue * Gaim__Value; |
| 257 | ||
| 12808 | 258 | /* xmlnode.h */ |
| 259 | typedef xmlnode * Gaim__XMLNode; | |
| 260 | typedef XMLNodeType XMLNode__Type; | |
| 11118 | 261 | |
| 12808 | 262 | /* other.h */ |