comparison src/buddy.c @ 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 6ba49fc29d67
comparison
equal deleted inserted replaced
4108:274cb26ba8dc 4109:4efc492cf16f
2474 /* unfortunately GdkEventConfigure ignores the window gravity, but * 2474 /* unfortunately GdkEventConfigure ignores the window gravity, but *
2475 * the only way we have of setting the position doesn't. we have to * 2475 * the only way we have of setting the position doesn't. we have to *
2476 * call get_position and get_size because they do pay attention to * 2476 * call get_position and get_size because they do pay attention to *
2477 * the gravity. this is inefficient and I agree it sucks, but it's * 2477 * the gravity. this is inefficient and I agree it sucks, but it's *
2478 * more likely to work correctly. - Robot101 */ 2478 * more likely to work correctly. - Robot101 */
2479 gint x, y, width, height; 2479 gint x, y;
2480 2480
2481 gtk_window_get_position(GTK_WINDOW(blist), &x, &y); 2481 gtk_window_get_position(GTK_WINDOW(blist), &x, &y);
2482 gtk_window_get_size(GTK_WINDOW(blist), &width, &height);
2483 2482
2484 if (x != blist_pos.x || 2483 if (x != blist_pos.x ||
2485 y != blist_pos.y || 2484 y != blist_pos.y ||
2486 width != blist_pos.width || 2485 event->width != blist_pos.width ||
2487 height != blist_pos.height) { 2486 event->height != blist_pos.height) {
2488 blist_pos.x = x; 2487 blist_pos.x = x;
2489 blist_pos.y = y; 2488 blist_pos.y = y;
2490 blist_pos.width = width; 2489 blist_pos.width = event->width;
2491 blist_pos.height = height; 2490 blist_pos.height = event->height;
2492 save_prefs(); 2491 save_prefs();
2493 } 2492 }
2494 } 2493 }
2495 2494
2496 static void visibility_blist_window(GtkWidget *w, GdkEventVisibility *event, void *data) { 2495 static void visibility_blist_window(GtkWidget *w, GdkEventVisibility *event, void *data) {