diff src/buddy.c @ 340:0d9cfc3579a5

[gaim-migrate @ 350] More changes to the applet. Now, you can have it remember the position and not have it near the applet, or not remember the position and not near the applet, or near the applet. Also, if you want it near the applet, the login box will appear near the applet. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 06 Jun 2000 21:33:20 +0000
parents 9d258a0aa560
children df984d56efb4
line wrap: on
line diff
--- a/src/buddy.c	Tue Jun 06 10:21:24 2000 +0000
+++ b/src/buddy.c	Tue Jun 06 21:33:20 2000 +0000
@@ -287,8 +287,10 @@
 }
 
 void gnome_buddy_set_pos( gint x, gint y ){
-        if (general_options & OPT_GEN_SAVED_WINDOWS)
+	if (general_options & OPT_GEN_NEAR_APPLET)
 		gtk_widget_set_uposition ( blist, x, y );
+	else if (general_options & OPT_GEN_SAVED_WINDOWS)
+		gtk_widget_set_uposition(blist, blist_pos.x - blist_pos.xoff, blist_pos.y - blist_pos.yoff);
 }
 
 GtkRequisition gnome_buddy_get_dimentions(){