diff src/applet.c @ 1420:9be6790092dc

[gaim-migrate @ 1430] backing out the change mishan sent in. it's not working right for me for some reason and i don't feel like trying to figure out why right now. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 23 Jan 2001 12:08:21 +0000
parents 42955549cdd9
children 13a34fb4abb0
line wrap: on
line diff
--- a/src/applet.c	Sun Jan 21 02:55:14 2001 +0000
+++ b/src/applet.c	Tue Jan 23 12:08:21 2001 +0000
@@ -244,7 +244,7 @@
 	GNOME_Panel_OrientType orient = applet_widget_get_panel_orient( APPLET_WIDGET(applet) );
 	pad = 5;
 
-	gdk_window_get_root_origin(gtk_widget_get_parent_window(appletframe), &x, &y);
+	gdk_window_get_position(gtk_widget_get_parent_window(appletframe), &x, &y);
 	if (for_blist) {
 	        if (general_options & OPT_GEN_SAVED_WINDOWS) {
 			buddy_req.width = blist_pos.width;
@@ -286,7 +286,7 @@
         if (general_options & OPT_GEN_NEAR_APPLET)
                 gtk_widget_set_uposition ( blist, al.x, al.y );
         else if (general_options & OPT_GEN_SAVED_WINDOWS)
-                gtk_widget_set_uposition(blist, blist_pos.x, blist_pos.y);
+                gtk_widget_set_uposition(blist, blist_pos.x - blist_pos.xoff, blist_pos.y - blist_pos.yoff);
 }
 
 void AppletClicked( GtkWidget *sender, GdkEventButton *ev, gpointer data ){