pidgin/win32/gtkwin32dep.c

changeset 16058
dc1c7b09a058
parent 15884
4de1981757fc
child 16123
8b98683319e7
equal deleted inserted replaced
16057:ad325d002a4f 16058:dc1c7b09a058
66 66
67 /* 67 /*
68 * PUBLIC CODE 68 * PUBLIC CODE
69 */ 69 */
70 70
71 HINSTANCE winpidgin_hinstance(void) { 71 HINSTANCE winpidgin_exe_hinstance(void) {
72 return exe_hInstance; 72 return exe_hInstance;
73 }
74
75 HINSTANCE winpidgin_dll_hinstance(void) {
76 return dll_hInstance;
73 } 77 }
74 78
75 int winpidgin_gz_decompress(const char* in, const char* out) { 79 int winpidgin_gz_decompress(const char* in, const char* out) {
76 gzFile fin; 80 gzFile fin;
77 FILE *fout; 81 FILE *fout;
222 wcx.cbSize = sizeof(wcx); 226 wcx.cbSize = sizeof(wcx);
223 wcx.style = 0; 227 wcx.style = 0;
224 wcx.lpfnWndProc = message_window_handler; 228 wcx.lpfnWndProc = message_window_handler;
225 wcx.cbClsExtra = 0; 229 wcx.cbClsExtra = 0;
226 wcx.cbWndExtra = 0; 230 wcx.cbWndExtra = 0;
227 wcx.hInstance = winpidgin_hinstance(); 231 wcx.hInstance = winpidgin_exe_hinstance();
228 wcx.hIcon = NULL; 232 wcx.hIcon = NULL;
229 wcx.hCursor = NULL; 233 wcx.hCursor = NULL;
230 wcx.hbrBackground = NULL; 234 wcx.hbrBackground = NULL;
231 wcx.lpszMenuName = NULL; 235 wcx.lpszMenuName = NULL;
232 wcx.lpszClassName = wname; 236 wcx.lpszClassName = wname;
234 238
235 RegisterClassEx(&wcx); 239 RegisterClassEx(&wcx);
236 240
237 /* Create the window */ 241 /* Create the window */
238 if(!(win_hwnd = CreateWindow(wname, TEXT("WinpidginMsgWin"), 0, 0, 0, 0, 0, 242 if(!(win_hwnd = CreateWindow(wname, TEXT("WinpidginMsgWin"), 0, 0, 0, 0, 0,
239 NULL, NULL, winpidgin_hinstance(), 0))) { 243 NULL, NULL, winpidgin_exe_hinstance(), 0))) {
240 purple_debug_error("winpidgin", 244 purple_debug_error("winpidgin",
241 "Unable to create message window.\n"); 245 "Unable to create message window.\n");
242 return NULL; 246 return NULL;
243 } 247 }
244 248

mercurial