| 132 |
132 |
| 133 #define PIDGIN_BUDDY_LIST_GET_PRIVATE(list) \ |
133 #define PIDGIN_BUDDY_LIST_GET_PRIVATE(list) \ |
| 134 ((PidginBuddyListPrivate *)((list)->priv)) |
134 ((PidginBuddyListPrivate *)((list)->priv)) |
| 135 |
135 |
| 136 #define PIDGIN_WINDOW_ICONIFIED(x) \ |
136 #define PIDGIN_WINDOW_ICONIFIED(x) \ |
| 137 (gdk_window_get_state(gtk_widget_get_window(GTK_WIDGET(x))) & GDK_WINDOW_STATE_ICONIFIED) |
137 (gdk_window_get_state(gtk_widget_get_window(GTK_WIDGET(x))) & \ |
| |
138 GDK_WINDOW_STATE_ICONIFIED) |
| |
139 |
| |
140 #define PIDGIN_WINDOW_MAXIMIZED(x) \ |
| |
141 (gdk_window_get_state(gtk_widget_get_window(GTK_WIDGET(x))) & \ |
| |
142 GDK_WINDOW_STATE_MAXIMIZED) |
| 138 |
143 |
| 139 static GtkWidget *accountmenu = NULL; |
144 static GtkWidget *accountmenu = NULL; |
| 140 |
145 |
| 141 static guint visibility_manager_count = 0; |
146 static guint visibility_manager_count = 0; |
| 142 static GdkVisibilityState gtk_blist_visibility = GDK_VISIBILITY_UNOBSCURED; |
147 static GdkVisibilityState gtk_blist_visibility = GDK_VISIBILITY_UNOBSCURED; |
| 262 return FALSE; /* carry on normally */ |
267 return FALSE; /* carry on normally */ |
| 263 |
268 |
| 264 #ifdef _WIN32 |
269 #ifdef _WIN32 |
| 265 /* Workaround for GTK+ bug # 169811 - "configure_event" is fired |
270 /* Workaround for GTK+ bug # 169811 - "configure_event" is fired |
| 266 * when the window is being maximized */ |
271 * when the window is being maximized */ |
| 267 if (gdk_window_get_state(w->window) |
272 if (PIDGIN_WINDOW_MAXIMIZED(w)) |
| 268 & GDK_WINDOW_STATE_MAXIMIZED) { |
|
| 269 return FALSE; |
273 return FALSE; |
| 270 } |
|
| 271 #endif |
274 #endif |
| 272 |
275 |
| 273 /* don't save if nothing changed */ |
276 /* don't save if nothing changed */ |
| 274 if (x == purple_prefs_get_int(PIDGIN_PREFS_ROOT "/blist/x") && |
277 if (x == purple_prefs_get_int(PIDGIN_PREFS_ROOT "/blist/x") && |
| 275 y == purple_prefs_get_int(PIDGIN_PREFS_ROOT "/blist/y") && |
278 y == purple_prefs_get_int(PIDGIN_PREFS_ROOT "/blist/y") && |