diff src/applet.c @ 1413:42955549cdd9

[gaim-migrate @ 1423] patch from mishan to save window positions correctly committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 18 Jan 2001 20:31:51 +0000
parents 83d8b2078f4c
children 9be6790092dc
line wrap: on
line diff
--- a/src/applet.c	Thu Jan 18 19:54:13 2001 +0000
+++ b/src/applet.c	Thu Jan 18 20:31:51 2001 +0000
@@ -244,7 +244,7 @@
 	GNOME_Panel_OrientType orient = applet_widget_get_panel_orient( APPLET_WIDGET(applet) );
 	pad = 5;
 
-	gdk_window_get_position(gtk_widget_get_parent_window(appletframe), &x, &y);
+	gdk_window_get_root_origin(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.xoff, blist_pos.y - blist_pos.yoff);
+                gtk_widget_set_uposition(blist, blist_pos.x, blist_pos.y);
 }
 
 void AppletClicked( GtkWidget *sender, GdkEventButton *ev, gpointer data ){