Mercurial > pidgin.yaz
comparison src/gtkblist.c @ 13766:e55e52d41287
[gaim-migrate @ 16178]
Workaround for win32 GTK+ bug causing the maximized window size to be saved
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 12 May 2006 02:34:07 +0000 |
parents | 2790a5f877f7 |
children | e744943e749c |
comparison
equal
deleted
inserted
replaced
13765:13b7e59a0759 | 13766:e55e52d41287 |
---|---|
209 * give us bogus (0,0) coordinates. - xOr */ | 209 * give us bogus (0,0) coordinates. - xOr */ |
210 if (GTK_WIDGET_VISIBLE(w)) | 210 if (GTK_WIDGET_VISIBLE(w)) |
211 gtk_window_get_position(GTK_WINDOW(w), &x, &y); | 211 gtk_window_get_position(GTK_WINDOW(w), &x, &y); |
212 else | 212 else |
213 return FALSE; /* carry on normally */ | 213 return FALSE; /* carry on normally */ |
214 | |
215 #ifdef _WIN32 | |
216 /* Workaround for GTK+ bug # 169811 - "configure_event" is fired | |
217 * when the window is being maximized */ | |
218 if (gdk_window_get_state(w->window) | |
219 & GDK_WINDOW_STATE_MAXIMIZED) { | |
220 return FALSE; | |
221 } | |
222 #endif | |
214 | 223 |
215 /* don't save if nothing changed */ | 224 /* don't save if nothing changed */ |
216 if (x == gaim_prefs_get_int("/gaim/gtk/blist/x") && | 225 if (x == gaim_prefs_get_int("/gaim/gtk/blist/x") && |
217 y == gaim_prefs_get_int("/gaim/gtk/blist/y") && | 226 y == gaim_prefs_get_int("/gaim/gtk/blist/y") && |
218 event->width == gaim_prefs_get_int("/gaim/gtk/blist/width") && | 227 event->width == gaim_prefs_get_int("/gaim/gtk/blist/width") && |