im.pidgin.pidgin: 3979d1b2a729eca61f9238dae2dde66170405387
datallah at pidgin.im
datallah at pidgin.im
Thu Nov 15 13:30:47 EST 2007
-----------------------------------------------------------------
Revision: 3979d1b2a729eca61f9238dae2dde66170405387
Ancestor: faa582bf7e047ea81c74ab372095434ae26d7832
Author: datallah at pidgin.im
Date: 2007-11-15T18:25:50
Branch: im.pidgin.pidgin
Modified files:
pidgin/win32/gtkwin32dep.c pidgin/win32/winpidgin.c
ChangeLog:
Use a Message only window for processing messages from the win32 launcher since it is slightly more efficient.
-------------- next part --------------
============================================================
--- pidgin/win32/gtkwin32dep.c 02a19a19214566329469cb0f1c928dbbc23a107c
+++ pidgin/win32/gtkwin32dep.c dc0b6df3e8e86e237ef2d4edc61eac6602bd6393
@@ -242,7 +242,7 @@ static HWND winpidgin_message_window_ini
/* Create the window */
if(!(win_hwnd = CreateWindow(wname, TEXT("WinpidginMsgWin"), 0, 0, 0, 0, 0,
- NULL, NULL, winpidgin_exe_hinstance(), 0))) {
+ HWND_MESSAGE, NULL, winpidgin_exe_hinstance(), 0))) {
purple_debug_error("winpidgin",
"Unable to create message window.\n");
return NULL;
============================================================
--- pidgin/win32/winpidgin.c ae92b5edd15c7939147b474ef43357b59b223f93
+++ pidgin/win32/winpidgin.c 3d08c25d6780d60c2761f26ed3330237bbeb5140
@@ -454,7 +454,7 @@ static BOOL winpidgin_set_running() {
printf("An instance of Pidgin is already running.\n");
- if((msg_win = FindWindow(TEXT("WinpidginMsgWinCls"), NULL)))
+ if((msg_win = FindWindowEx(HWND_MESSAGE, NULL, TEXT("WinpidginMsgWinCls"), NULL)))
if(SendMessage(msg_win, PIDGIN_WM_FOCUS_REQUEST, (WPARAM) NULL, (LPARAM) NULL))
return FALSE;
@@ -494,7 +494,7 @@ static void handle_protocol(char *cmd) {
return;
}
- if (!(msg_win = FindWindow(TEXT("WinpidginMsgWinCls"), NULL))) {
+ if (!(msg_win = FindWindowEx(HWND_MESSAGE, NULL, TEXT("WinpidginMsgWinCls"), NULL))) {
printf("Unable to find an instance of Pidgin to handle protocol message.\n");
return;
}
More information about the Commits
mailing list