Mercurial > pidgin.yaz
changeset 17493:bfdc5995d54a
Don't save conversation window size to prefs if the window is maximized. Fixes #920
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Fri, 01 Jun 2007 00:49:26 +0000 |
parents | e7595d13fd63 |
children | 95203f9325a3 |
files | pidgin/gtkconv.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkconv.c Thu May 31 20:22:43 2007 +0000 +++ b/pidgin/gtkconv.c Fri Jun 01 00:49:26 2007 +0000 @@ -235,6 +235,10 @@ return FALSE; } + if (gdk_window_get_state(gtkconv->win->window->window) & GDK_WINDOW_STATE_MAXIMIZED) { + return FALSE; + } + /* I find that I resize the window when it has a bunch of conversations in it, mostly so that the * tab bar will fit, but then I don't want new windows taking up the entire screen. I check to see * if there is only one conversation in the window. This way we'll be setting new windows to the