pidgin/win32/gtkwin32dep.c

changeset 15678
7434ef155a3a
parent 15578
8039a694e225
child 15697
78ddac185d80
equal deleted inserted replaced
15677:b2f272e0c51e 15678:7434ef155a3a
47 #include <libintl.h> 47 #include <libintl.h>
48 48
49 #include "gtkwin32dep.h" 49 #include "gtkwin32dep.h"
50 #include "win32dep.h" 50 #include "win32dep.h"
51 #include "gtkconv.h" 51 #include "gtkconv.h"
52 #include "util.h"
52 #include "wspell.h" 53 #include "wspell.h"
53 54
54 /* 55 /*
55 * GLOBALS 56 * GLOBALS
56 */ 57 */
190 * default http browser. 191 * default http browser.
191 */ 192 */
192 winpidgin_shell_execute(uri, "open", "http"); 193 winpidgin_shell_execute(uri, "open", "http");
193 } 194 }
194 195
195 #define WM_FOCUS_REQUEST (WM_APP + 13) 196 #define PIDGIN_WM_FOCUS_REQUEST (WM_APP + 13)
197 #define PIDGIN_WM_PROTOCOL_HANDLE (WM_APP + 14)
196 198
197 static LRESULT CALLBACK message_window_handler(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { 199 static LRESULT CALLBACK message_window_handler(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
198 200
199 if (msg == WM_FOCUS_REQUEST) { 201 if (msg == PIDGIN_WM_FOCUS_REQUEST) {
200 gaim_debug_info("winpidgin", "Got external Buddy List focus request."); 202 gaim_debug_info("winpidgin", "Got external Buddy List focus request.");
201 gaim_blist_set_visible(TRUE); 203 gaim_blist_set_visible(TRUE);
204 return TRUE;
205 } else if (msg == PIDGIN_WM_PROTOCOL_HANDLE) {
206 char *proto_msg = (char *) lparam;
207 gaim_debug_info("winpidgin", "Got protocol handler request: %s\n", proto_msg ? proto_msg : "");
208 gaim_got_protocol_handler_uri(proto_msg);
202 return TRUE; 209 return TRUE;
203 } 210 }
204 211
205 return DefWindowProc(hwnd, msg, wparam, lparam); 212 return DefWindowProc(hwnd, msg, wparam, lparam);
206 } 213 }

mercurial