src/win32/win32dep.c

changeset 4882
28908a7a9ad4
parent 4861
3b98cd332858
child 4984
a44abb0f8d56
equal deleted inserted replaced
4881:6d214d5d8b06 4882:28908a7a9ad4
51 * PROTOS 51 * PROTOS
52 */ 52 */
53 53
54 BOOL (*MyFlashWindowEx)(PFLASHWINFO pfwi)=NULL; 54 BOOL (*MyFlashWindowEx)(PFLASHWINFO pfwi)=NULL;
55 FARPROC wgaim_find_and_loadproc(char*, char*); 55 FARPROC wgaim_find_and_loadproc(char*, char*);
56
57 /* Gaim window filters from systray.c */
58 extern GdkFilterReturn st_buddywin_filter(GdkXEvent*, GdkEvent*, gpointer);
59 extern GdkFilterReturn st_loginwin_filter(GdkXEvent*, GdkEvent*, gpointer);
60 extern GdkFilterReturn st_backwin_filter(GdkXEvent*, GdkEvent*, gpointer);
61 56
62 /* 57 /*
63 * STATIC CODE 58 * STATIC CODE
64 */ 59 */
65 60
137 132
138 style = GetWindowLong(hWnd, GWL_STYLE); 133 style = GetWindowLong(hWnd, GWL_STYLE);
139 extended_style = GetWindowLong (hWnd, GWL_EXSTYLE); 134 extended_style = GetWindowLong (hWnd, GWL_EXSTYLE);
140 GetClientRect (hWnd, &trect); 135 GetClientRect (hWnd, &trect);
141 AdjustWindowRectEx (&trect, style, FALSE, extended_style); 136 AdjustWindowRectEx (&trect, style, FALSE, extended_style);
142 137 gtk_window_move(window, x + (-1 * trect.left), y + (-1 * trect.top));
143 gtk_window_move(window, x + (-1 * trect.left) , y + (-1 * trect.top));
144 } 138 }
145 139
146 140
147 /* Determine whether the specified dll contains the specified procedure. 141 /* Determine whether the specified dll contains the specified procedure.
148 If so, load it (if not already loaded). */ 142 If so, load it (if not already loaded). */
175 } 169 }
176 return NULL; 170 return NULL;
177 } 171 }
178 } 172 }
179 173
180 /*
181 * These functions are called after their respective windows are created.
182 */
183 void wgaim_created_loginwin( GtkWidget *loginwin ) {
184 gdk_window_add_filter (GTK_WIDGET(loginwin)->window,
185 st_loginwin_filter,
186 NULL);
187 }
188
189 /* Determine Gaim Paths during Runtime */ 174 /* Determine Gaim Paths during Runtime */
190 175
191 char* wgaim_install_dir(void) { 176 char* wgaim_install_dir(void) {
192 HMODULE hmod; 177 HMODULE hmod;
193 char* buf; 178 char* buf;

mercurial