diff options
author | George Hazan <george.hazan@gmail.com> | 2014-05-04 20:14:26 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-05-04 20:14:26 +0000 |
commit | d99dfcdef30598e72154955f9154b33646bf70d3 (patch) | |
tree | 2603fe1c87b0ffcd158c3e6e16b159af7a0a7526 | |
parent | c12a8920b8e6c8cc3b4773eef51e05f9be1ff73c (diff) |
new hidden function to access ME_MC_DEFAULTTCHANGED
git-svn-id: http://svn.miranda-ng.org/main/trunk@9127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | bin10/lib/mir_core.lib | bin | 59280 -> 59526 bytes | |||
-rw-r--r-- | bin10/lib/mir_core64.lib | bin | 54254 -> 54486 bytes | |||
-rw-r--r-- | bin12/lib/mir_core.lib | bin | 59280 -> 59526 bytes | |||
-rw-r--r-- | bin12/lib/mir_core64.lib | bin | 54254 -> 54486 bytes | |||
-rw-r--r-- | src/mir_core/mc.cpp | 5 | ||||
-rw-r--r-- | src/modules/metacontacts/meta_services.cpp | 4 |
6 files changed, 8 insertions, 1 deletions
diff --git a/bin10/lib/mir_core.lib b/bin10/lib/mir_core.lib Binary files differindex beee486311..5efba8dd33 100644 --- a/bin10/lib/mir_core.lib +++ b/bin10/lib/mir_core.lib diff --git a/bin10/lib/mir_core64.lib b/bin10/lib/mir_core64.lib Binary files differindex 1036692201..e7d6e09ce5 100644 --- a/bin10/lib/mir_core64.lib +++ b/bin10/lib/mir_core64.lib diff --git a/bin12/lib/mir_core.lib b/bin12/lib/mir_core.lib Binary files differindex a6d4588399..8fb46230f7 100644 --- a/bin12/lib/mir_core.lib +++ b/bin12/lib/mir_core.lib diff --git a/bin12/lib/mir_core64.lib b/bin12/lib/mir_core64.lib Binary files differindex 1036692201..697864a54b 100644 --- a/bin12/lib/mir_core64.lib +++ b/bin12/lib/mir_core64.lib diff --git a/src/mir_core/mc.cpp b/src/mir_core/mc.cpp index 00431a0875..f25d9ffa88 100644 --- a/src/mir_core/mc.cpp +++ b/src/mir_core/mc.cpp @@ -163,3 +163,8 @@ MIR_CORE_DLL(int) db_mc_setDefaultNum(MCONTACT hMetaContact, int iNum, BOOL bWri NotifyEventHooks(hEventDefaultChanged, hMetaContact, Meta_GetContactHandle(cc, iNum));
return 0;
}
+
+extern "C" MIR_CORE_DLL(void) db_mc_notifyDefChange(WPARAM wParam, LPARAM lParam)
+{
+ NotifyEventHooks(hEventDefaultChanged, wParam, lParam);
+}
\ No newline at end of file diff --git a/src/modules/metacontacts/meta_services.cpp b/src/modules/metacontacts/meta_services.cpp index 4f5ae940ac..5efa60e6ea 100644 --- a/src/modules/metacontacts/meta_services.cpp +++ b/src/modules/metacontacts/meta_services.cpp @@ -26,6 +26,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "metacontacts.h"
+extern "C" MIR_CORE_DLL(void) db_mc_notifyDefChange(WPARAM wParam, LPARAM lParam);
+
char *pendingACK = 0; // Name of the protocol in which an ACK is about to come.
int previousMode, // Previous status of the MetaContacts Protocol
@@ -418,7 +420,7 @@ int Meta_SettingChanged(WPARAM hContact, LPARAM lParam) // set status to that of most online contact
MCONTACT hMostOnline = Meta_GetMostOnline(ccMeta);
if (hMostOnline != db_mc_getDefault(ccMeta->contactID))
- db_mc_setDefault(ccMeta->contactID, hMostOnline, false);
+ db_mc_notifyDefChange(ccMeta->contactID, hMostOnline);
Meta_CopyContactNick(ccMeta, hMostOnline);
Meta_FixStatus(ccMeta);
|