Mercurial > pidgin
changeset 4109:4efc492cf16f
[gaim-migrate @ 4324]
(21:14:00) Robot101: although I just had a thought.... before you commit it, change this:
(21:14:11) LSchiere: ugh
(21:14:24) Robot101: trust me, it's far harder for me to re-diff it :P
(21:14:30) LSchiere: not now it isn't
(21:14:34) LSchiere: what line?
(21:14:53) LSchiere: of the file not the patch
(21:15:05) Robot101: buddy.c 2479
(21:15:22) LSchiere: kay
(21:15:36) LSchiere: gint x, y, width, height;
(21:15:47) Robot101: remove width and height, then remove the call to gtk_window_get_size, and change the
4 occurences of width and height to event.width and event.height
(21:16:13) Robot101: size is not dependent on gravity, so we don't need to get it via gtk.
(21:17:03) LSchiere: any other thoughts?
(21:17:33) Robot101: yes. I'm an idiot.
(21:17:42) LSchiere: you said it, not me.
(21:17:53) deryni: I smell commit message
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 21 Dec 2002 02:19:42 +0000 |
parents | 274cb26ba8dc |
children | 64d983d6b7bb |
files | src/buddy.c |
diffstat | 1 files changed, 5 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buddy.c Sat Dec 21 02:14:02 2002 +0000 +++ b/src/buddy.c Sat Dec 21 02:19:42 2002 +0000 @@ -2476,19 +2476,18 @@ * call get_position and get_size because they do pay attention to * * the gravity. this is inefficient and I agree it sucks, but it's * * more likely to work correctly. - Robot101 */ - gint x, y, width, height; + gint x, y; gtk_window_get_position(GTK_WINDOW(blist), &x, &y); - gtk_window_get_size(GTK_WINDOW(blist), &width, &height); if (x != blist_pos.x || y != blist_pos.y || - width != blist_pos.width || - height != blist_pos.height) { + event->width != blist_pos.width || + event->height != blist_pos.height) { blist_pos.x = x; blist_pos.y = y; - blist_pos.width = width; - blist_pos.height = height; + blist_pos.width = event->width; + blist_pos.height = event->height; save_prefs(); } }