Mercurial > pidgin
diff src/win32/win32dep.c @ 4984:b5e52f7e5302
[gaim-migrate @ 5319]
now realizing windows in wgaim_gtk_window_move
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Thu, 03 Apr 2003 17:08:34 +0000 |
parents | 8e25dff29859 |
children | 89a5b0e23ea4 |
line wrap: on
line diff
--- a/src/win32/win32dep.c Thu Apr 03 16:57:39 2003 +0000 +++ b/src/win32/win32dep.c Thu Apr 03 17:08:34 2003 +0000 @@ -128,8 +128,11 @@ void wgaim_gtk_window_move(GtkWindow *window, gint x, gint y) { LONG style, extended_style; RECT trect; - HWND hWnd = GDK_WINDOW_HWND(GTK_WIDGET(window)->window); + HWND hWnd; + if(!GTK_WIDGET_REALIZED(GTK_WIDGET(window))) + gtk_widget_realize(GTK_WIDGET(window)); + hWnd = GDK_WINDOW_HWND(GTK_WIDGET(window)->window); style = GetWindowLong(hWnd, GWL_STYLE); extended_style = GetWindowLong (hWnd, GWL_EXSTYLE); GetClientRect (hWnd, &trect);