| 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 } |