pidgin/win32/gtkwin32dep.c

changeset 39333
2da5959eb42c
parent 38628
ea61e3b679a7
child 39957
be2eb199e368
child 39999
2f878969929d
equal deleted inserted replaced
39332:1e991df183c2 39333:2da5959eb42c
37 37
38 #include "resource.h" 38 #include "resource.h"
39 #include "untar.h" 39 #include "untar.h"
40 40
41 #include "gtkwin32dep.h" 41 #include "gtkwin32dep.h"
42 #include "gtkblist.h"
42 #include "gtkconv.h" 43 #include "gtkconv.h"
43 #include "gtkconn.h" 44 #include "gtkconn.h"
44 #include "util.h" 45 #include "util.h"
45 46
46 /* 47 /*
235 } 236 }
236 237
237 static LRESULT CALLBACK message_window_handler(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { 238 static LRESULT CALLBACK message_window_handler(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
238 239
239 if (msg == PIDGIN_WM_FOCUS_REQUEST) { 240 if (msg == PIDGIN_WM_FOCUS_REQUEST) {
241 PidginBuddyList *blist;
240 purple_debug_info("winpidgin", "Got external Buddy List focus request."); 242 purple_debug_info("winpidgin", "Got external Buddy List focus request.");
241 purple_blist_set_visible(TRUE); 243 blist = pidgin_blist_get_default_gtk_blist();
244 if (blist != NULL && blist->window != NULL) {
245 gtk_window_present(GTK_WINDOW(blist->window));
246 }
242 return TRUE; 247 return TRUE;
243 } else if (msg == PIDGIN_WM_PROTOCOL_HANDLE) { 248 } else if (msg == PIDGIN_WM_PROTOCOL_HANDLE) {
244 char *proto_msg = (char *) lparam; 249 char *proto_msg = (char *) lparam;
245 purple_debug_info("winpidgin", "Got protocol handler request: %s\n", proto_msg ? proto_msg : ""); 250 purple_debug_info("winpidgin", "Got protocol handler request: %s\n", proto_msg ? proto_msg : "");
246 purple_got_protocol_handler_uri(proto_msg); 251 purple_got_protocol_handler_uri(proto_msg);

mercurial