comparison src/buddy.c @ 4402:4e5446a7131f

[gaim-migrate @ 4671] This is from Mr. McQueen. I believe it lets you put your buddy list at 0,0. I don't feel comfortable commiting the gtk2 away message patch... So I'll let someone else do it. NCSU beat Duke! Duke sucks! State rulz! committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 23 Jan 2003 05:39:03 +0000
parents 868ee63e1fe8
children 8067614e49e4
comparison
equal deleted inserted replaced
4401:3f09e83b569a 4402:4e5446a7131f
1825 if (!GTK_WIDGET_VISIBLE(blist) && blist_options & OPT_BLIST_SAVED_WINDOWS && 1825 if (!GTK_WIDGET_VISIBLE(blist) && blist_options & OPT_BLIST_SAVED_WINDOWS &&
1826 blist_pos.width != 0) { 1826 blist_pos.width != 0) {
1827 /* don't move it off screen */ 1827 /* don't move it off screen */
1828 if (blist_pos.x >= gdk_screen_width()) { 1828 if (blist_pos.x >= gdk_screen_width()) {
1829 blist_pos.x = gdk_screen_width() - 100; 1829 blist_pos.x = gdk_screen_width() - 100;
1830 } else if (blist_pos.x <= 0) { 1830 } else if (blist_pos.x < 0) {
1831 blist_pos.x = 100; 1831 blist_pos.x = 100;
1832 } 1832 }
1833 1833
1834 if (blist_pos.y >= gdk_screen_height()) { 1834 if (blist_pos.y >= gdk_screen_height()) {
1835 blist_pos.y = gdk_screen_height() - 100; 1835 blist_pos.y = gdk_screen_height() - 100;
1836 } else if (blist_pos.y <= 0) { 1836 } else if (blist_pos.y < 0) {
1837 blist_pos.y = 100; 1837 blist_pos.y = 100;
1838 } 1838 }
1839 1839
1840 gtk_window_move(GTK_WINDOW(blist), blist_pos.x, blist_pos.y); 1840 gtk_window_move(GTK_WINDOW(blist), blist_pos.x, blist_pos.y);
1841 gtk_window_resize(GTK_WINDOW(blist), blist_pos.width, blist_pos.height); 1841 gtk_window_resize(GTK_WINDOW(blist), blist_pos.width, blist_pos.height);