Mercurial > pidgin
diff src/buddy.c @ 4472:e73c4e8e2d03
[gaim-migrate @ 4747]
E'ric Boumaour (zongo_fr) writes:
"gtkconv.c and gtkutils.c in POTFILES.in
gettextized some strings in dialogs.c
French translation file update and entry in gaim.desktop"
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Thu, 30 Jan 2003 15:15:15 +0000 |
parents | 78a2d2e7f4b5 |
children | 62c1e5e656d0 |
line wrap: on
line diff
--- a/src/buddy.c Thu Jan 30 09:47:01 2003 +0000 +++ b/src/buddy.c Thu Jan 30 15:15:15 2003 +0000 @@ -2324,17 +2324,21 @@ * more likely to work correctly. - Robot101 */ gint x, y; - gtk_window_get_position(GTK_WINDOW(blist), &x, &y); - - if (x != blist_pos.x || - y != blist_pos.y || - event->width != blist_pos.width || - event->height != blist_pos.height) { - blist_pos.x = x; - blist_pos.y = y; - blist_pos.width = event->width; - blist_pos.height = event->height; - save_prefs(); + /* check for visibility because when we aren't visible, this will * + * give us bogus (0,0) coordinates. - xOr */ + if (GTK_WIDGET_VISIBLE(blist)) { + gtk_window_get_position(GTK_WINDOW(blist), &x, &y); + + if (x != blist_pos.x || + y != blist_pos.y || + event->width != blist_pos.width || + event->height != blist_pos.height) { + blist_pos.x = x; + blist_pos.y = y; + blist_pos.width = event->width; + blist_pos.height = event->height; + save_prefs(); + } } return FALSE; }