public void GetWidgetPosition (Widget widget, out int x, out int y) { main_window.GdkWindow.GetOrigin (out x, out y); x += widget.Allocation.X; y += widget.Allocation.Y; }